Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1 | #! /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2 | # Guess values for system-dependent variables and create Makefiles. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3 | # Generated by GNU Autoconf 2.65. |
| 4 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 5 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7 | # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, |
| 8 | # Inc. |
| 9 | # |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11 | # This configure script is free software; the Free Software Foundation |
| 12 | # gives unlimited permission to copy, distribute and modify it. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 13 | ## -------------------- ## |
| 14 | ## M4sh Initialization. ## |
| 15 | ## -------------------- ## |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 16 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 17 | # Be more Bourne compatible |
| 18 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 20 | emulate sh |
| 21 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 23 | # is contrary to our usage. Disable this feature. |
| 24 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 25 | setopt NO_GLOB_SUBST |
| 26 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 27 | case `(set -o) 2>/dev/null` in #( |
| 28 | *posix*) : |
| 29 | set -o posix ;; #( |
| 30 | *) : |
| 31 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 32 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 33 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 34 | |
| 35 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 36 | as_nl=' |
| 37 | ' |
| 38 | export as_nl |
| 39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 43 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 44 | # but without wasting forks for bash or zsh. |
| 45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 47 | as_echo='print -r --' |
| 48 | as_echo_n='print -rn --' |
| 49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 50 | as_echo='printf %s\n' |
| 51 | as_echo_n='printf %s' |
| 52 | else |
| 53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 55 | as_echo_n='/usr/ucb/echo -n' |
| 56 | else |
| 57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 58 | as_echo_n_body='eval |
| 59 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 60 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 61 | *"$as_nl"*) |
| 62 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 64 | esac; |
| 65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 66 | ' |
| 67 | export as_echo_n_body |
| 68 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 69 | fi |
| 70 | export as_echo_body |
| 71 | as_echo='sh -c $as_echo_body as_echo' |
| 72 | fi |
| 73 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 74 | # The user is always right. |
| 75 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 76 | PATH_SEPARATOR=: |
| 77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 79 | PATH_SEPARATOR=';' |
| 80 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 81 | fi |
| 82 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 83 | |
| 84 | # IFS |
| 85 | # We need space, tab and new line, in precisely that order. Quoting is |
| 86 | # there to prevent editors from complaining about space-tab. |
| 87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 88 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 89 | IFS=" "" $as_nl" |
| 90 | |
| 91 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 92 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 93 | *[\\/]* ) as_myself=$0 ;; |
| 94 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 95 | for as_dir in $PATH |
| 96 | do |
| 97 | IFS=$as_save_IFS |
| 98 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 99 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 100 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 101 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 102 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 103 | ;; |
| 104 | esac |
| 105 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 106 | # in which case we are not to be found in the path. |
| 107 | if test "x$as_myself" = x; then |
| 108 | as_myself=$0 |
| 109 | fi |
| 110 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 111 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 112 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 113 | fi |
| 114 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 115 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 116 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 117 | # suppresses any "Segmentation fault" message there. '((' could |
| 118 | # trigger a bug in pdksh 5.2.14. |
| 119 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 120 | do eval test x\${$as_var+set} = xset \ |
| 121 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 122 | done |
| 123 | PS1='$ ' |
| 124 | PS2='> ' |
| 125 | PS4='+ ' |
| 126 | |
| 127 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 128 | LC_ALL=C |
| 129 | export LC_ALL |
| 130 | LANGUAGE=C |
| 131 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 132 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 133 | # CDPATH. |
| 134 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 135 | |
| 136 | if test "x$CONFIG_SHELL" = x; then |
| 137 | as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : |
| 138 | emulate sh |
| 139 | NULLCMD=: |
| 140 | # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which |
| 141 | # is contrary to our usage. Disable this feature. |
| 142 | alias -g '\${1+\"\$@\"}'='\"\$@\"' |
| 143 | setopt NO_GLOB_SUBST |
| 144 | else |
| 145 | case \`(set -o) 2>/dev/null\` in #( |
| 146 | *posix*) : |
| 147 | set -o posix ;; #( |
| 148 | *) : |
| 149 | ;; |
| 150 | esac |
| 151 | fi |
| 152 | " |
| 153 | as_required="as_fn_return () { (exit \$1); } |
| 154 | as_fn_success () { as_fn_return 0; } |
| 155 | as_fn_failure () { as_fn_return 1; } |
| 156 | as_fn_ret_success () { return 0; } |
| 157 | as_fn_ret_failure () { return 1; } |
| 158 | |
| 159 | exitcode=0 |
| 160 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } |
| 161 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } |
| 162 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } |
| 163 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } |
| 164 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : |
| 165 | |
| 166 | else |
| 167 | exitcode=1; echo positional parameters were not saved. |
| 168 | fi |
| 169 | test x\$exitcode = x0 || exit 1" |
| 170 | as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO |
| 171 | as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO |
| 172 | eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && |
| 173 | test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 |
| 174 | test \$(( 1 + 1 )) = 2 || exit 1" |
| 175 | if (eval "$as_required") 2>/dev/null; then : |
| 176 | as_have_required=yes |
| 177 | else |
| 178 | as_have_required=no |
| 179 | fi |
| 180 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : |
| 181 | |
| 182 | else |
| 183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 184 | as_found=false |
| 185 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
| 186 | do |
| 187 | IFS=$as_save_IFS |
| 188 | test -z "$as_dir" && as_dir=. |
| 189 | as_found=: |
| 190 | case $as_dir in #( |
| 191 | /*) |
| 192 | for as_base in sh bash ksh sh5; do |
| 193 | # Try only shells that exist, to save several forks. |
| 194 | as_shell=$as_dir/$as_base |
| 195 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
| 196 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 197 | CONFIG_SHELL=$as_shell as_have_required=yes |
| 198 | if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : |
| 199 | break 2 |
| 200 | fi |
| 201 | fi |
| 202 | done;; |
| 203 | esac |
| 204 | as_found=false |
| 205 | done |
| 206 | $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && |
| 207 | { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : |
| 208 | CONFIG_SHELL=$SHELL as_have_required=yes |
| 209 | fi; } |
| 210 | IFS=$as_save_IFS |
| 211 | |
| 212 | |
| 213 | if test "x$CONFIG_SHELL" != x; then : |
| 214 | # We cannot yet assume a decent shell, so we have to provide a |
| 215 | # neutralization value for shells without unset; and this also |
| 216 | # works around shells that cannot unset nonexistent variables. |
| 217 | BASH_ENV=/dev/null |
| 218 | ENV=/dev/null |
| 219 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV |
| 220 | export CONFIG_SHELL |
| 221 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
| 222 | fi |
| 223 | |
| 224 | if test x$as_have_required = xno; then : |
| 225 | $as_echo "$0: This script requires a shell more modern than all" |
| 226 | $as_echo "$0: the shells that I found on your system." |
| 227 | if test x${ZSH_VERSION+set} = xset ; then |
| 228 | $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" |
| 229 | $as_echo "$0: be upgraded to zsh 4.3.4 or later." |
| 230 | else |
| 231 | $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, |
| 232 | $0: including any error possibly output before this |
| 233 | $0: message. Then install a modern shell, or manually run |
| 234 | $0: the script under such a shell if you do have one." |
| 235 | fi |
| 236 | exit 1 |
| 237 | fi |
| 238 | fi |
| 239 | fi |
| 240 | SHELL=${CONFIG_SHELL-/bin/sh} |
| 241 | export SHELL |
| 242 | # Unset more variables known to interfere with behavior of common tools. |
| 243 | CLICOLOR_FORCE= GREP_OPTIONS= |
| 244 | unset CLICOLOR_FORCE GREP_OPTIONS |
| 245 | |
| 246 | ## --------------------- ## |
| 247 | ## M4sh Shell Functions. ## |
| 248 | ## --------------------- ## |
| 249 | # as_fn_unset VAR |
| 250 | # --------------- |
| 251 | # Portably unset VAR. |
| 252 | as_fn_unset () |
| 253 | { |
| 254 | { eval $1=; unset $1;} |
| 255 | } |
| 256 | as_unset=as_fn_unset |
| 257 | |
| 258 | # as_fn_set_status STATUS |
| 259 | # ----------------------- |
| 260 | # Set $? to STATUS, without forking. |
| 261 | as_fn_set_status () |
| 262 | { |
| 263 | return $1 |
| 264 | } # as_fn_set_status |
| 265 | |
| 266 | # as_fn_exit STATUS |
| 267 | # ----------------- |
| 268 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 269 | as_fn_exit () |
| 270 | { |
| 271 | set +e |
| 272 | as_fn_set_status $1 |
| 273 | exit $1 |
| 274 | } # as_fn_exit |
| 275 | |
| 276 | # as_fn_mkdir_p |
| 277 | # ------------- |
| 278 | # Create "$as_dir" as a directory, including parents if necessary. |
| 279 | as_fn_mkdir_p () |
| 280 | { |
| 281 | |
| 282 | case $as_dir in #( |
| 283 | -*) as_dir=./$as_dir;; |
| 284 | esac |
| 285 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 286 | as_dirs= |
| 287 | while :; do |
| 288 | case $as_dir in #( |
| 289 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 290 | *) as_qdir=$as_dir;; |
| 291 | esac |
| 292 | as_dirs="'$as_qdir' $as_dirs" |
| 293 | as_dir=`$as_dirname -- "$as_dir" || |
| 294 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 295 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 296 | X"$as_dir" : 'X\(//\)$' \| \ |
| 297 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 298 | $as_echo X"$as_dir" | |
| 299 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 300 | s//\1/ |
| 301 | q |
| 302 | } |
| 303 | /^X\(\/\/\)[^/].*/{ |
| 304 | s//\1/ |
| 305 | q |
| 306 | } |
| 307 | /^X\(\/\/\)$/{ |
| 308 | s//\1/ |
| 309 | q |
| 310 | } |
| 311 | /^X\(\/\).*/{ |
| 312 | s//\1/ |
| 313 | q |
| 314 | } |
| 315 | s/.*/./; q'` |
| 316 | test -d "$as_dir" && break |
| 317 | done |
| 318 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 319 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 320 | |
| 321 | |
| 322 | } # as_fn_mkdir_p |
| 323 | # as_fn_append VAR VALUE |
| 324 | # ---------------------- |
| 325 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 326 | # advantage of any shell optimizations that allow amortized linear growth over |
| 327 | # repeated appends, instead of the typical quadratic growth present in naive |
| 328 | # implementations. |
| 329 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 330 | eval 'as_fn_append () |
| 331 | { |
| 332 | eval $1+=\$2 |
| 333 | }' |
| 334 | else |
| 335 | as_fn_append () |
| 336 | { |
| 337 | eval $1=\$$1\$2 |
| 338 | } |
| 339 | fi # as_fn_append |
| 340 | |
| 341 | # as_fn_arith ARG... |
| 342 | # ------------------ |
| 343 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 344 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 345 | # must be portable across $(()) and expr. |
| 346 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 347 | eval 'as_fn_arith () |
| 348 | { |
| 349 | as_val=$(( $* )) |
| 350 | }' |
| 351 | else |
| 352 | as_fn_arith () |
| 353 | { |
| 354 | as_val=`expr "$@" || test $? -eq 1` |
| 355 | } |
| 356 | fi # as_fn_arith |
| 357 | |
| 358 | |
| 359 | # as_fn_error ERROR [LINENO LOG_FD] |
| 360 | # --------------------------------- |
| 361 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 362 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 363 | # script with status $?, using 1 if that was 0. |
| 364 | as_fn_error () |
| 365 | { |
| 366 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 367 | if test "$3"; then |
| 368 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 369 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 370 | fi |
| 371 | $as_echo "$as_me: error: $1" >&2 |
| 372 | as_fn_exit $as_status |
| 373 | } # as_fn_error |
| 374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 375 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 376 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 377 | as_expr=expr |
| 378 | else |
| 379 | as_expr=false |
| 380 | fi |
| 381 | |
| 382 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 383 | as_basename=basename |
| 384 | else |
| 385 | as_basename=false |
| 386 | fi |
| 387 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 388 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 389 | as_dirname=dirname |
| 390 | else |
| 391 | as_dirname=false |
| 392 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 393 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 394 | as_me=`$as_basename -- "$0" || |
| 395 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 396 | X"$0" : 'X\(//\)$' \| \ |
| 397 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 398 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 399 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 400 | s//\1/ |
| 401 | q |
| 402 | } |
| 403 | /^X\/\(\/\/\)$/{ |
| 404 | s//\1/ |
| 405 | q |
| 406 | } |
| 407 | /^X\/\(\/\).*/{ |
| 408 | s//\1/ |
| 409 | q |
| 410 | } |
| 411 | s/.*/./; q'` |
| 412 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 413 | # Avoid depending upon Character Ranges. |
| 414 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 415 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 416 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 417 | as_cr_digits='0123456789' |
| 418 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 419 | |
| 420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 421 | as_lineno_1=$LINENO as_lineno_1a=$LINENO |
| 422 | as_lineno_2=$LINENO as_lineno_2a=$LINENO |
| 423 | eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && |
| 424 | test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { |
| 425 | # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 426 | sed -n ' |
| 427 | p |
| 428 | /[$]LINENO/= |
| 429 | ' <$as_myself | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 430 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 431 | s/[$]LINENO.*/&-/ |
| 432 | t lineno |
| 433 | b |
| 434 | :lineno |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 435 | N |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 436 | :loop |
| 437 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 438 | t loop |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 439 | s/-\n.*// |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 440 | ' >$as_me.lineno && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 441 | chmod +x "$as_me.lineno" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 442 | { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 443 | |
| 444 | # Don't try to exec as it changes $[0], causing all sort of problems |
| 445 | # (the dirname of $[0] is not the place where we might find the |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 446 | # original and so on. Autoconf is especially sensitive to this). |
| 447 | . "./$as_me.lineno" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 448 | # Exit status is that of the last command. |
| 449 | exit |
| 450 | } |
| 451 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 452 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 453 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 454 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 455 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 456 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 457 | xy) ECHO_C='\c';; |
| 458 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 459 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 460 | esac;; |
| 461 | *) |
| 462 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 463 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 464 | |
| 465 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 466 | if test -d conf$$.dir; then |
| 467 | rm -f conf$$.dir/conf$$.file |
| 468 | else |
| 469 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 470 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 471 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 472 | if (echo >conf$$.file) 2>/dev/null; then |
| 473 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 474 | as_ln_s='ln -s' |
| 475 | # ... but there are two gotchas: |
| 476 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 477 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 478 | # In both cases, we have to default to `cp -p'. |
| 479 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 480 | as_ln_s='cp -p' |
| 481 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 482 | as_ln_s=ln |
| 483 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 484 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 485 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 486 | else |
| 487 | as_ln_s='cp -p' |
| 488 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 489 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 490 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 491 | |
| 492 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 493 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 494 | else |
| 495 | test -d ./-p && rmdir ./-p |
| 496 | as_mkdir_p=false |
| 497 | fi |
| 498 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 499 | if test -x / >/dev/null 2>&1; then |
| 500 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 501 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 502 | if ls -dL / >/dev/null 2>&1; then |
| 503 | as_ls_L_option=L |
| 504 | else |
| 505 | as_ls_L_option= |
| 506 | fi |
| 507 | as_test_x=' |
| 508 | eval sh -c '\'' |
| 509 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 510 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 511 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 512 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 513 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 514 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 515 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 516 | ???[sx]*):;;*)false;;esac;fi |
| 517 | '\'' sh |
| 518 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 519 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 520 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 521 | |
| 522 | # Sed expression to map a string onto a valid CPP name. |
| 523 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 524 | |
| 525 | # Sed expression to map a string onto a valid variable name. |
| 526 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 527 | |
| 528 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 529 | test -n "$DJDIR" || exec 7<&0 </dev/null |
| 530 | exec 6>&1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 531 | |
| 532 | # Name of the host. |
| 533 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
| 534 | # so uname gets run too. |
| 535 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
| 536 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 537 | # |
| 538 | # Initializations. |
| 539 | # |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 540 | ac_default_prefix=/usr/local |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 541 | ac_clean_files= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 542 | ac_config_libobj_dir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 543 | LIBOBJS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 544 | cross_compiling=no |
| 545 | subdirs= |
| 546 | MFLAGS= |
| 547 | MAKEFLAGS= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 548 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 549 | # Identity of this package. |
| 550 | PACKAGE_NAME= |
| 551 | PACKAGE_TARNAME= |
| 552 | PACKAGE_VERSION= |
| 553 | PACKAGE_STRING= |
| 554 | PACKAGE_BUGREPORT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 555 | PACKAGE_URL= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 556 | |
| 557 | ac_unique_file="version.h" |
| 558 | # Factoring default headers for most tests. |
| 559 | ac_includes_default="\ |
| 560 | #include <stdio.h> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 561 | #ifdef HAVE_SYS_TYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 562 | # include <sys/types.h> |
| 563 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 564 | #ifdef HAVE_SYS_STAT_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 565 | # include <sys/stat.h> |
| 566 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 567 | #ifdef STDC_HEADERS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 568 | # include <stdlib.h> |
| 569 | # include <stddef.h> |
| 570 | #else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 571 | # ifdef HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 572 | # include <stdlib.h> |
| 573 | # endif |
| 574 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 575 | #ifdef HAVE_STRING_H |
| 576 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 577 | # include <memory.h> |
| 578 | # endif |
| 579 | # include <string.h> |
| 580 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 581 | #ifdef HAVE_STRINGS_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 582 | # include <strings.h> |
| 583 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 584 | #ifdef HAVE_INTTYPES_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 585 | # include <inttypes.h> |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 586 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 587 | #ifdef HAVE_STDINT_H |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 588 | # include <stdint.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 589 | #endif |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 590 | #ifdef HAVE_UNISTD_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 591 | # include <unistd.h> |
| 592 | #endif" |
| 593 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 594 | ac_header_list= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 595 | ac_subst_vars='LTLIBOBJS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 596 | LIBOBJS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 597 | BUILD_LDFLAGS |
| 598 | BUILD_CFLAGS |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 599 | INCLUDES |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 600 | DO_TEST_SUITE |
| 601 | ET_DIR |
| 602 | SS_DIR |
| 603 | LDFLAG_STATIC |
| 604 | root_sysconfdir |
| 605 | root_libdir |
| 606 | root_sbindir |
| 607 | root_bindir |
| 608 | root_prefix |
| 609 | UNIX_CMT |
| 610 | CYGWIN_CMT |
| 611 | LINUX_CMT |
| 612 | UNI_DIFF_OPTS |
| 613 | SEM_INIT_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 614 | SOCKET_LIB |
| 615 | SIZEOF_LONG_LONG |
| 616 | SIZEOF_LONG |
| 617 | SIZEOF_INT |
| 618 | SIZEOF_SHORT |
| 619 | BUILD_CC |
| 620 | MAKEINFO |
| 621 | STRIP |
| 622 | AR |
| 623 | LDCONFIG |
| 624 | PERL |
| 625 | SED |
| 626 | AWK |
| 627 | CHMOD |
| 628 | RM |
| 629 | CP |
| 630 | MV |
| 631 | LN_S |
| 632 | LN |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 633 | ifNotGNUmake |
| 634 | ifGNUmake |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 635 | BINARY_TYPE |
| 636 | POSUB |
| 637 | LTLIBINTL |
| 638 | LIBINTL |
| 639 | INTLLIBS |
| 640 | INTL_LIBTOOL_SUFFIX_PREFIX |
| 641 | INTLOBJS |
| 642 | GENCAT |
| 643 | INSTOBJEXT |
| 644 | DATADIRNAME |
| 645 | CATOBJEXT |
| 646 | USE_INCLUDED_LIBINTL |
| 647 | BUILD_INCLUDED_LIBINTL |
| 648 | INTLBISON |
| 649 | LTLIBICONV |
| 650 | LIBICONV |
| 651 | HAVE_WPRINTF |
| 652 | HAVE_SNPRINTF |
| 653 | HAVE_ASPRINTF |
| 654 | HAVE_POSIX_PRINTF |
| 655 | GLIBC21 |
| 656 | ALLOCA |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 657 | EGREP |
| 658 | GREP |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 659 | RANLIB |
| 660 | MSGMERGE |
| 661 | XGETTEXT |
| 662 | GMSGFMT |
| 663 | MSGFMT |
| 664 | USE_NLS |
| 665 | MKINSTALLDIRS |
| 666 | INSTALL_DATA |
| 667 | INSTALL_SCRIPT |
| 668 | INSTALL_PROGRAM |
| 669 | SET_MAKE |
| 670 | VERSION |
| 671 | PACKAGE |
| 672 | GETTEXT_PACKAGE |
| 673 | UUIDD_CMT |
| 674 | E2INITRD_MAN |
| 675 | E2INITRD_PROG |
| 676 | FSCK_MAN |
| 677 | FSCK_PROG |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 678 | DEFRAG_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 679 | RESIZER_CMT |
| 680 | IMAGER_CMT |
| 681 | DEBUGFS_CMT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 682 | QUOTA_CMT |
| 683 | DEPPROFILED_LIBQUOTA |
| 684 | PROFILED_LIBQUOTA |
| 685 | DEPSTATIC_LIBQUOTA |
| 686 | STATIC_LIBQUOTA |
| 687 | DEPLIBQUOTA |
| 688 | LIBQUOTA |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 689 | BLKID_CMT |
| 690 | DEPPROFILED_LIBBLKID |
| 691 | PROFILED_LIBBLKID |
| 692 | DEPSTATIC_LIBBLKID |
| 693 | STATIC_LIBBLKID |
| 694 | DEPLIBBLKID |
| 695 | LIBBLKID |
| 696 | UUID_CMT |
| 697 | DEPPROFILED_LIBUUID |
| 698 | PROFILED_LIBUUID |
| 699 | DEPSTATIC_LIBUUID |
| 700 | STATIC_LIBUUID |
| 701 | DEPLIBUUID |
| 702 | LIBUUID |
| 703 | PKG_CONFIG |
| 704 | TEST_IO_CMT |
| 705 | PRIVATE_LIBS_CMT |
| 706 | LDFLAG_DYNAMIC |
| 707 | PROFILED_LIB_EXT |
| 708 | STATIC_LIB_EXT |
| 709 | LIB_EXT |
| 710 | CHECKER_CMT |
| 711 | PROFILE_CMT |
| 712 | BSDLIB_CMT |
| 713 | ELF_CMT |
| 714 | HTREE_CMT |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 715 | Q |
| 716 | E |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 717 | LINK_BUILD_FLAGS |
| 718 | LINK_INSTALL_FLAGS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 719 | MAINTAINER_CMT |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 720 | CPP |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 721 | RDYNAMIC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 722 | DLOPEN_LIB |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 723 | OBJEXT |
| 724 | EXEEXT |
| 725 | ac_ct_CC |
| 726 | CPPFLAGS |
| 727 | LDFLAGS |
| 728 | CFLAGS |
| 729 | CC |
| 730 | host_os |
| 731 | host_vendor |
| 732 | host_cpu |
| 733 | host |
| 734 | build_os |
| 735 | build_vendor |
| 736 | build_cpu |
| 737 | build |
| 738 | E2FSPROGS_PKGVER |
| 739 | E2FSPROGS_VERSION |
| 740 | E2FSPROGS_DAY |
| 741 | E2FSPROGS_MONTH |
| 742 | E2FSPROGS_YEAR |
| 743 | target_alias |
| 744 | host_alias |
| 745 | build_alias |
| 746 | LIBS |
| 747 | ECHO_T |
| 748 | ECHO_N |
| 749 | ECHO_C |
| 750 | DEFS |
| 751 | mandir |
| 752 | localedir |
| 753 | libdir |
| 754 | psdir |
| 755 | pdfdir |
| 756 | dvidir |
| 757 | htmldir |
| 758 | infodir |
| 759 | docdir |
| 760 | oldincludedir |
| 761 | includedir |
| 762 | localstatedir |
| 763 | sharedstatedir |
| 764 | sysconfdir |
| 765 | datadir |
| 766 | datarootdir |
| 767 | libexecdir |
| 768 | sbindir |
| 769 | bindir |
| 770 | program_transform_name |
| 771 | prefix |
| 772 | exec_prefix |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 773 | PACKAGE_URL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 774 | PACKAGE_BUGREPORT |
| 775 | PACKAGE_STRING |
| 776 | PACKAGE_VERSION |
| 777 | PACKAGE_TARNAME |
| 778 | PACKAGE_NAME |
| 779 | PATH_SEPARATOR |
| 780 | SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 781 | ac_subst_files='MCONFIG |
| 782 | MAKEFILE_ELF |
| 783 | MAKEFILE_BSDLIB |
| 784 | MAKEFILE_PROFILE |
| 785 | MAKEFILE_CHECKER |
| 786 | MAKEFILE_LIBRARY |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 787 | ASM_TYPES_HEADER |
| 788 | PUBLIC_CONFIG_HEADER' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 789 | ac_user_opts=' |
| 790 | enable_option_checking |
| 791 | with_diet_libc |
| 792 | with_cc |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 793 | with_ccopts |
| 794 | with_ldopts |
| 795 | with_root_prefix |
| 796 | enable_maintainer_mode |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 797 | enable_symlink_install |
| 798 | enable_symlink_build |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 799 | enable_verbose_makecmds |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 800 | enable_compression |
| 801 | enable_htree |
| 802 | enable_elf_shlibs |
| 803 | enable_bsd_shlibs |
| 804 | enable_profile |
| 805 | enable_checker |
| 806 | enable_jbd_debug |
| 807 | enable_blkid_debug |
| 808 | enable_testio_debug |
| 809 | enable_libuuid |
| 810 | enable_libblkid |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame^] | 811 | enable_quota |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 812 | enable_debugfs |
| 813 | enable_imager |
| 814 | enable_resizer |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 815 | enable_defrag |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 816 | enable_fsck |
| 817 | enable_e2initrd_helper |
| 818 | enable_tls |
| 819 | enable_uuidd |
| 820 | enable_nls |
| 821 | with_gnu_ld |
| 822 | enable_rpath |
| 823 | with_libiconv_prefix |
| 824 | with_included_gettext |
| 825 | with_libintl_prefix |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 826 | with_multiarch |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 827 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 828 | ac_precious_vars='build_alias |
| 829 | host_alias |
| 830 | target_alias |
| 831 | CC |
| 832 | CFLAGS |
| 833 | LDFLAGS |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 834 | LIBS |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 835 | CPPFLAGS |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 836 | CPP |
| 837 | PKG_CONFIG' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 838 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 839 | |
| 840 | # Initialize some variables set by options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 841 | ac_init_help= |
| 842 | ac_init_version=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 843 | ac_unrecognized_opts= |
| 844 | ac_unrecognized_sep= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 845 | # The variables have the same names as the options, with |
| 846 | # dashes changed to underlines. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 847 | cache_file=/dev/null |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 848 | exec_prefix=NONE |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 849 | no_create= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 850 | no_recursion= |
| 851 | prefix=NONE |
| 852 | program_prefix=NONE |
| 853 | program_suffix=NONE |
| 854 | program_transform_name=s,x,x, |
| 855 | silent= |
| 856 | site= |
| 857 | srcdir= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 858 | verbose= |
| 859 | x_includes=NONE |
| 860 | x_libraries=NONE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 861 | |
| 862 | # Installation directory options. |
| 863 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
| 864 | # and all the variables that are supposed to be based on exec_prefix |
| 865 | # by default will actually change. |
| 866 | # Use braces instead of parens because sh, perl, etc. also accept them. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 867 | # (The list follows the same order as the GNU Coding Standards.) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 868 | bindir='${exec_prefix}/bin' |
| 869 | sbindir='${exec_prefix}/sbin' |
| 870 | libexecdir='${exec_prefix}/libexec' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 871 | datarootdir='${prefix}/share' |
| 872 | datadir='${datarootdir}' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 873 | sysconfdir='${prefix}/etc' |
| 874 | sharedstatedir='${prefix}/com' |
| 875 | localstatedir='${prefix}/var' |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 876 | includedir='${prefix}/include' |
| 877 | oldincludedir='/usr/include' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 878 | docdir='${datarootdir}/doc/${PACKAGE}' |
| 879 | infodir='${datarootdir}/info' |
| 880 | htmldir='${docdir}' |
| 881 | dvidir='${docdir}' |
| 882 | pdfdir='${docdir}' |
| 883 | psdir='${docdir}' |
| 884 | libdir='${exec_prefix}/lib' |
| 885 | localedir='${datarootdir}/locale' |
| 886 | mandir='${datarootdir}/man' |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 887 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 888 | ac_prev= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 889 | ac_dashdash= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 890 | for ac_option |
| 891 | do |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 892 | # If the previous option needs an argument, assign it. |
| 893 | if test -n "$ac_prev"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 894 | eval $ac_prev=\$ac_option |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 895 | ac_prev= |
| 896 | continue |
| 897 | fi |
| 898 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 899 | case $ac_option in |
| 900 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
| 901 | *) ac_optarg=yes ;; |
| 902 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 903 | |
| 904 | # Accept the important Cygnus configure options, so we can diagnose typos. |
| 905 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 906 | case $ac_dashdash$ac_option in |
| 907 | --) |
| 908 | ac_dashdash=yes ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 909 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 910 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
| 911 | ac_prev=bindir ;; |
| 912 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 913 | bindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 914 | |
| 915 | -build | --build | --buil | --bui | --bu) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 916 | ac_prev=build_alias ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 917 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 918 | build_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 919 | |
| 920 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
| 921 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
| 922 | ac_prev=cache_file ;; |
| 923 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
| 924 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 925 | cache_file=$ac_optarg ;; |
| 926 | |
| 927 | --config-cache | -C) |
| 928 | cache_file=config.cache ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 929 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 930 | -datadir | --datadir | --datadi | --datad) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 931 | ac_prev=datadir ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 932 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 933 | datadir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 934 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 935 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
| 936 | | --dataroo | --dataro | --datar) |
| 937 | ac_prev=datarootdir ;; |
| 938 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
| 939 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
| 940 | datarootdir=$ac_optarg ;; |
| 941 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 942 | -disable-* | --disable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 943 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 944 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 945 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 946 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 947 | ac_useropt_orig=$ac_useropt |
| 948 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 949 | case $ac_user_opts in |
| 950 | *" |
| 951 | "enable_$ac_useropt" |
| 952 | "*) ;; |
| 953 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" |
| 954 | ac_unrecognized_sep=', ';; |
| 955 | esac |
| 956 | eval enable_$ac_useropt=no ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 957 | |
| 958 | -docdir | --docdir | --docdi | --doc | --do) |
| 959 | ac_prev=docdir ;; |
| 960 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
| 961 | docdir=$ac_optarg ;; |
| 962 | |
| 963 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
| 964 | ac_prev=dvidir ;; |
| 965 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
| 966 | dvidir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 967 | |
| 968 | -enable-* | --enable-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 969 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 970 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 971 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 972 | as_fn_error "invalid feature name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 973 | ac_useropt_orig=$ac_useropt |
| 974 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 975 | case $ac_user_opts in |
| 976 | *" |
| 977 | "enable_$ac_useropt" |
| 978 | "*) ;; |
| 979 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" |
| 980 | ac_unrecognized_sep=', ';; |
| 981 | esac |
| 982 | eval enable_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 983 | |
| 984 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
| 985 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
| 986 | | --exec | --exe | --ex) |
| 987 | ac_prev=exec_prefix ;; |
| 988 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
| 989 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
| 990 | | --exec=* | --exe=* | --ex=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 991 | exec_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 992 | |
| 993 | -gas | --gas | --ga | --g) |
| 994 | # Obsolete; use --with-gas. |
| 995 | with_gas=yes ;; |
| 996 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 997 | -help | --help | --hel | --he | -h) |
| 998 | ac_init_help=long ;; |
| 999 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
| 1000 | ac_init_help=recursive ;; |
| 1001 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
| 1002 | ac_init_help=short ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1003 | |
| 1004 | -host | --host | --hos | --ho) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1005 | ac_prev=host_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1006 | -host=* | --host=* | --hos=* | --ho=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1007 | host_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1008 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1009 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
| 1010 | ac_prev=htmldir ;; |
| 1011 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
| 1012 | | --ht=*) |
| 1013 | htmldir=$ac_optarg ;; |
| 1014 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1015 | -includedir | --includedir | --includedi | --included | --include \ |
| 1016 | | --includ | --inclu | --incl | --inc) |
| 1017 | ac_prev=includedir ;; |
| 1018 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
| 1019 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1020 | includedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1021 | |
| 1022 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
| 1023 | ac_prev=infodir ;; |
| 1024 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1025 | infodir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1026 | |
| 1027 | -libdir | --libdir | --libdi | --libd) |
| 1028 | ac_prev=libdir ;; |
| 1029 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1030 | libdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1031 | |
| 1032 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
| 1033 | | --libexe | --libex | --libe) |
| 1034 | ac_prev=libexecdir ;; |
| 1035 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
| 1036 | | --libexe=* | --libex=* | --libe=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1037 | libexecdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1038 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1039 | -localedir | --localedir | --localedi | --localed | --locale) |
| 1040 | ac_prev=localedir ;; |
| 1041 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
| 1042 | localedir=$ac_optarg ;; |
| 1043 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1044 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1045 | | --localstate | --localstat | --localsta | --localst | --locals) |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1046 | ac_prev=localstatedir ;; |
| 1047 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1048 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1049 | localstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1050 | |
| 1051 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
| 1052 | ac_prev=mandir ;; |
| 1053 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1054 | mandir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1055 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1056 | -nfp | --nfp | --nf) |
| 1057 | # Obsolete; use --without-fp. |
| 1058 | with_fp=no ;; |
| 1059 | |
| 1060 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1061 | | --no-cr | --no-c | -n) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1062 | no_create=yes ;; |
| 1063 | |
| 1064 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
| 1065 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
| 1066 | no_recursion=yes ;; |
| 1067 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1068 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
| 1069 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
| 1070 | | --oldin | --oldi | --old | --ol | --o) |
| 1071 | ac_prev=oldincludedir ;; |
| 1072 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
| 1073 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
| 1074 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1075 | oldincludedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1076 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1077 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
| 1078 | ac_prev=prefix ;; |
| 1079 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1080 | prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1081 | |
| 1082 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
| 1083 | | --program-pre | --program-pr | --program-p) |
| 1084 | ac_prev=program_prefix ;; |
| 1085 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
| 1086 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1087 | program_prefix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1088 | |
| 1089 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
| 1090 | | --program-suf | --program-su | --program-s) |
| 1091 | ac_prev=program_suffix ;; |
| 1092 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
| 1093 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1094 | program_suffix=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1095 | |
| 1096 | -program-transform-name | --program-transform-name \ |
| 1097 | | --program-transform-nam | --program-transform-na \ |
| 1098 | | --program-transform-n | --program-transform- \ |
| 1099 | | --program-transform | --program-transfor \ |
| 1100 | | --program-transfo | --program-transf \ |
| 1101 | | --program-trans | --program-tran \ |
| 1102 | | --progr-tra | --program-tr | --program-t) |
| 1103 | ac_prev=program_transform_name ;; |
| 1104 | -program-transform-name=* | --program-transform-name=* \ |
| 1105 | | --program-transform-nam=* | --program-transform-na=* \ |
| 1106 | | --program-transform-n=* | --program-transform-=* \ |
| 1107 | | --program-transform=* | --program-transfor=* \ |
| 1108 | | --program-transfo=* | --program-transf=* \ |
| 1109 | | --program-trans=* | --program-tran=* \ |
| 1110 | | --progr-tra=* | --program-tr=* | --program-t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1111 | program_transform_name=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1112 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1113 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
| 1114 | ac_prev=pdfdir ;; |
| 1115 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
| 1116 | pdfdir=$ac_optarg ;; |
| 1117 | |
| 1118 | -psdir | --psdir | --psdi | --psd | --ps) |
| 1119 | ac_prev=psdir ;; |
| 1120 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
| 1121 | psdir=$ac_optarg ;; |
| 1122 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1123 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 1124 | | -silent | --silent | --silen | --sile | --sil) |
| 1125 | silent=yes ;; |
| 1126 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1127 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
| 1128 | ac_prev=sbindir ;; |
| 1129 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
| 1130 | | --sbi=* | --sb=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1131 | sbindir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1132 | |
| 1133 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
| 1134 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
| 1135 | | --sharedst | --shareds | --shared | --share | --shar \ |
| 1136 | | --sha | --sh) |
| 1137 | ac_prev=sharedstatedir ;; |
| 1138 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
| 1139 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
| 1140 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
| 1141 | | --sha=* | --sh=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1142 | sharedstatedir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1143 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1144 | -site | --site | --sit) |
| 1145 | ac_prev=site ;; |
| 1146 | -site=* | --site=* | --sit=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1147 | site=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1148 | |
| 1149 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
| 1150 | ac_prev=srcdir ;; |
| 1151 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1152 | srcdir=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1153 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1154 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
| 1155 | | --syscon | --sysco | --sysc | --sys | --sy) |
| 1156 | ac_prev=sysconfdir ;; |
| 1157 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
| 1158 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1159 | sysconfdir=$ac_optarg ;; |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1160 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1161 | -target | --target | --targe | --targ | --tar | --ta | --t) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1162 | ac_prev=target_alias ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1163 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1164 | target_alias=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1165 | |
| 1166 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
| 1167 | verbose=yes ;; |
| 1168 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1169 | -version | --version | --versio | --versi | --vers | -V) |
| 1170 | ac_init_version=: ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1171 | |
| 1172 | -with-* | --with-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1173 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1174 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1175 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1176 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1177 | ac_useropt_orig=$ac_useropt |
| 1178 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1179 | case $ac_user_opts in |
| 1180 | *" |
| 1181 | "with_$ac_useropt" |
| 1182 | "*) ;; |
| 1183 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" |
| 1184 | ac_unrecognized_sep=', ';; |
| 1185 | esac |
| 1186 | eval with_$ac_useropt=\$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1187 | |
| 1188 | -without-* | --without-*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1189 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1190 | # Reject names that are not valid shell variable names. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1191 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1192 | as_fn_error "invalid package name: $ac_useropt" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1193 | ac_useropt_orig=$ac_useropt |
| 1194 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` |
| 1195 | case $ac_user_opts in |
| 1196 | *" |
| 1197 | "with_$ac_useropt" |
| 1198 | "*) ;; |
| 1199 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" |
| 1200 | ac_unrecognized_sep=', ';; |
| 1201 | esac |
| 1202 | eval with_$ac_useropt=no ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1203 | |
| 1204 | --x) |
| 1205 | # Obsolete; use --with-x. |
| 1206 | with_x=yes ;; |
| 1207 | |
| 1208 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
| 1209 | | --x-incl | --x-inc | --x-in | --x-i) |
| 1210 | ac_prev=x_includes ;; |
| 1211 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
| 1212 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1213 | x_includes=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1214 | |
| 1215 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
| 1216 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
| 1217 | ac_prev=x_libraries ;; |
| 1218 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
| 1219 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1220 | x_libraries=$ac_optarg ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1221 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1222 | -*) as_fn_error "unrecognized option: \`$ac_option' |
| 1223 | Try \`$0 --help' for more information." |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1224 | ;; |
| 1225 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1226 | *=*) |
| 1227 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
| 1228 | # Reject names that are not valid shell variable names. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1229 | case $ac_envvar in #( |
| 1230 | '' | [0-9]* | *[!_$as_cr_alnum]* ) |
| 1231 | as_fn_error "invalid variable name: \`$ac_envvar'" ;; |
| 1232 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1233 | eval $ac_envvar=\$ac_optarg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1234 | export $ac_envvar ;; |
| 1235 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 1236 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1237 | # FIXME: should be removed in autoconf 3.0. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1238 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1239 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1240 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1241 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1242 | ;; |
| 1243 | |
| 1244 | esac |
| 1245 | done |
| 1246 | |
| 1247 | if test -n "$ac_prev"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1248 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1249 | as_fn_error "missing argument to $ac_option" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1250 | fi |
| 1251 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1252 | if test -n "$ac_unrecognized_opts"; then |
| 1253 | case $enable_option_checking in |
| 1254 | no) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1255 | fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1256 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; |
| 1257 | esac |
| 1258 | fi |
| 1259 | |
| 1260 | # Check all directory arguments for consistency. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1261 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
| 1262 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
| 1263 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
| 1264 | libdir localedir mandir |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1265 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1266 | eval ac_val=\$$ac_var |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1267 | # Remove trailing slashes. |
| 1268 | case $ac_val in |
| 1269 | */ ) |
| 1270 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` |
| 1271 | eval $ac_var=\$ac_val;; |
| 1272 | esac |
| 1273 | # Be sure to have absolute directory names. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1274 | case $ac_val in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1275 | [\\/$]* | ?:[\\/]* ) continue;; |
| 1276 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1277 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1278 | as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1279 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1280 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1281 | # There might be people who depend on the old broken behavior: `$host' |
| 1282 | # used to hold the argument of --host etc. |
| 1283 | # FIXME: To remove some day. |
| 1284 | build=$build_alias |
| 1285 | host=$host_alias |
| 1286 | target=$target_alias |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1287 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1288 | # FIXME: To remove some day. |
| 1289 | if test "x$host_alias" != x; then |
| 1290 | if test "x$build_alias" = x; then |
| 1291 | cross_compiling=maybe |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1292 | $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1293 | If a cross compiler is detected then cross compile mode will be used." >&2 |
| 1294 | elif test "x$build_alias" != "x$host_alias"; then |
| 1295 | cross_compiling=yes |
| 1296 | fi |
| 1297 | fi |
| 1298 | |
| 1299 | ac_tool_prefix= |
| 1300 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
| 1301 | |
| 1302 | test "$silent" = yes && exec 6>/dev/null |
| 1303 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1304 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1305 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
| 1306 | ac_ls_di=`ls -di .` && |
| 1307 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1308 | as_fn_error "working directory cannot be determined" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1309 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1310 | as_fn_error "pwd does not report name of working directory" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1311 | |
| 1312 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1313 | # Find the source files, if location was not specified. |
| 1314 | if test -z "$srcdir"; then |
| 1315 | ac_srcdir_defaulted=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1316 | # Try the directory containing this script, then the parent directory. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1317 | ac_confdir=`$as_dirname -- "$as_myself" || |
| 1318 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 1319 | X"$as_myself" : 'X\(//\)[^/]' \| \ |
| 1320 | X"$as_myself" : 'X\(//\)$' \| \ |
| 1321 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || |
| 1322 | $as_echo X"$as_myself" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1323 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 1324 | s//\1/ |
| 1325 | q |
| 1326 | } |
| 1327 | /^X\(\/\/\)[^/].*/{ |
| 1328 | s//\1/ |
| 1329 | q |
| 1330 | } |
| 1331 | /^X\(\/\/\)$/{ |
| 1332 | s//\1/ |
| 1333 | q |
| 1334 | } |
| 1335 | /^X\(\/\).*/{ |
| 1336 | s//\1/ |
| 1337 | q |
| 1338 | } |
| 1339 | s/.*/./; q'` |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1340 | srcdir=$ac_confdir |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1341 | if test ! -r "$srcdir/$ac_unique_file"; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1342 | srcdir=.. |
| 1343 | fi |
| 1344 | else |
| 1345 | ac_srcdir_defaulted=no |
| 1346 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1347 | if test ! -r "$srcdir/$ac_unique_file"; then |
| 1348 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1349 | as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1350 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1351 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
| 1352 | ac_abs_confdir=`( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1353 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1354 | pwd)` |
| 1355 | # When building in place, set srcdir=. |
| 1356 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
| 1357 | srcdir=. |
| 1358 | fi |
| 1359 | # Remove unnecessary trailing slashes from srcdir. |
| 1360 | # Double slashes in file names in object file debugging info |
| 1361 | # mess up M-x gdb in Emacs. |
| 1362 | case $srcdir in |
| 1363 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
| 1364 | esac |
| 1365 | for ac_var in $ac_precious_vars; do |
| 1366 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
| 1367 | eval ac_env_${ac_var}_value=\$${ac_var} |
| 1368 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
| 1369 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
| 1370 | done |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 1371 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1372 | # |
| 1373 | # Report the --help message. |
| 1374 | # |
| 1375 | if test "$ac_init_help" = "long"; then |
| 1376 | # Omit some internal or obsolete options to make the list less imposing. |
| 1377 | # This message is too long to be a string in the A/UX 3.1 sh. |
| 1378 | cat <<_ACEOF |
| 1379 | \`configure' configures this package to adapt to many kinds of systems. |
| 1380 | |
| 1381 | Usage: $0 [OPTION]... [VAR=VALUE]... |
| 1382 | |
| 1383 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
| 1384 | VAR=VALUE. See below for descriptions of some of the useful variables. |
| 1385 | |
| 1386 | Defaults for the options are specified in brackets. |
| 1387 | |
| 1388 | Configuration: |
| 1389 | -h, --help display this help and exit |
| 1390 | --help=short display options specific to this package |
| 1391 | --help=recursive display the short help of all the included packages |
| 1392 | -V, --version display version information and exit |
| 1393 | -q, --quiet, --silent do not print \`checking...' messages |
| 1394 | --cache-file=FILE cache test results in FILE [disabled] |
| 1395 | -C, --config-cache alias for \`--cache-file=config.cache' |
| 1396 | -n, --no-create do not create output files |
| 1397 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
| 1398 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1399 | Installation directories: |
| 1400 | --prefix=PREFIX install architecture-independent files in PREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1401 | [$ac_default_prefix] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1402 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1403 | [PREFIX] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1404 | |
| 1405 | By default, \`make install' will install all the files in |
| 1406 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
| 1407 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
| 1408 | for instance \`--prefix=\$HOME'. |
| 1409 | |
| 1410 | For better control, use the options below. |
| 1411 | |
| 1412 | Fine tuning of the installation directories: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1413 | --bindir=DIR user executables [EPREFIX/bin] |
| 1414 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
| 1415 | --libexecdir=DIR program executables [EPREFIX/libexec] |
| 1416 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
| 1417 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
| 1418 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
| 1419 | --libdir=DIR object code libraries [EPREFIX/lib] |
| 1420 | --includedir=DIR C header files [PREFIX/include] |
| 1421 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
| 1422 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
| 1423 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
| 1424 | --infodir=DIR info documentation [DATAROOTDIR/info] |
| 1425 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
| 1426 | --mandir=DIR man documentation [DATAROOTDIR/man] |
| 1427 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] |
| 1428 | --htmldir=DIR html documentation [DOCDIR] |
| 1429 | --dvidir=DIR dvi documentation [DOCDIR] |
| 1430 | --pdfdir=DIR pdf documentation [DOCDIR] |
| 1431 | --psdir=DIR ps documentation [DOCDIR] |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1432 | _ACEOF |
| 1433 | |
| 1434 | cat <<\_ACEOF |
| 1435 | |
| 1436 | System types: |
| 1437 | --build=BUILD configure for building on BUILD [guessed] |
| 1438 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
| 1439 | _ACEOF |
| 1440 | fi |
| 1441 | |
| 1442 | if test -n "$ac_init_help"; then |
| 1443 | |
| 1444 | cat <<\_ACEOF |
| 1445 | |
| 1446 | Optional Features: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1447 | --disable-option-checking ignore unrecognized --enable/--with options |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1448 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
| 1449 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 1450 | --enable-maintainer-mode enable makefile rules useful for maintainers |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 1451 | --enable-symlink-install use symlinks when installing instead of hard links |
| 1452 | --enable-symlink-build use symlinks while building instead of hard links |
| 1453 | --enable-verbose-makecmds enable verbose make command output |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1454 | --enable-compression enable EXPERIMENTAL compression support |
| 1455 | --enable-htree enable EXPERIMENTAL htree directory support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1456 | --enable-elf-shlibs select ELF shared libraries |
| 1457 | --enable-bsd-shlibs select BSD shared libraries |
| 1458 | --enable-profile build profiling libraries |
| 1459 | --enable-checker build checker libraries |
| 1460 | --enable-jbd-debug enable journal debugging |
| 1461 | --enable-blkid-debug enable blkid debugging |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 1462 | --disable-testio-debug disable the use of the test I/O manager for debugging |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1463 | --disable-libuuid do not build private uuid library |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1464 | --disable-libblkid do not build private blkid library |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame^] | 1465 | --enable-libquota enable quota support |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1466 | --disable-debugfs disable support of debugfs program |
| 1467 | --disable-imager disable support of e2image program |
| 1468 | --disable-resizer disable support of e2resize program |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 1469 | --disable-defrag disable support of e4defrag program |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1470 | --enable-fsck build fsck wrapper program |
| 1471 | --enable-e2initrd-helper build e2initrd-helper program |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1472 | --disable-tls disable use of thread local support |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 1473 | --disable-uuidd disable building the uuid daemon |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1474 | --disable-nls do not use Native Language Support |
| 1475 | --disable-rpath do not hardcode runtime library paths |
| 1476 | |
| 1477 | Optional Packages: |
| 1478 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
| 1479 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 1480 | --with-diet-libc use diet libc |
Theodore Ts'o | 0b5b9f9 | 2009-09-06 21:28:47 -0400 | [diff] [blame] | 1481 | --with-cc no longer supported, use CC= instead |
| 1482 | --with-ccopts no longer supported, use CFLAGS= instead |
| 1483 | --with-ldopts no longer supported, use LDFLAGS= instead |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1484 | --with-root-prefix=PREFIX override prefix variable for files to be placed in the root |
| 1485 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
| 1486 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
| 1487 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
| 1488 | --with-included-gettext use the GNU gettext library included here |
| 1489 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
| 1490 | --without-libintl-prefix don't search for libintl in includedir and libdir |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 1491 | --with-multiarch=ARCH specify the multiarch triplet |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1492 | |
| 1493 | Some influential environment variables: |
| 1494 | CC C compiler command |
| 1495 | CFLAGS C compiler flags |
| 1496 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
| 1497 | nonstandard directory <lib dir> |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 1498 | LIBS libraries to pass to the linker, e.g. -l<library> |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1499 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1500 | you have headers in a nonstandard directory <include dir> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1501 | CPP C preprocessor |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 1502 | PKG_CONFIG path to pkg-config utility |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1503 | |
| 1504 | Use these variables to override the choices made by `configure' or to help |
| 1505 | it to find libraries and programs with nonstandard names/locations. |
| 1506 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1507 | Report bugs to the package provider. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1508 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1509 | ac_status=$? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1510 | fi |
| 1511 | |
| 1512 | if test "$ac_init_help" = "recursive"; then |
| 1513 | # If there are subdirs, report their specific --help. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1514 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1515 | test -d "$ac_dir" || |
| 1516 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || |
| 1517 | continue |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1518 | ac_builddir=. |
| 1519 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1520 | case "$ac_dir" in |
| 1521 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1522 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1523 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1524 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1525 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1526 | case $ac_top_builddir_sub in |
| 1527 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 1528 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 1529 | esac ;; |
| 1530 | esac |
| 1531 | ac_abs_top_builddir=$ac_pwd |
| 1532 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 1533 | # for backward compatibility: |
| 1534 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1535 | |
| 1536 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1537 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1538 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1539 | ac_top_srcdir=$ac_top_builddir_sub |
| 1540 | ac_abs_top_srcdir=$ac_pwd ;; |
| 1541 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1542 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1543 | ac_top_srcdir=$srcdir |
| 1544 | ac_abs_top_srcdir=$srcdir ;; |
| 1545 | *) # Relative name. |
| 1546 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 1547 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 1548 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1549 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1550 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1552 | cd "$ac_dir" || { ac_status=$?; continue; } |
| 1553 | # Check for guested configure. |
| 1554 | if test -f "$ac_srcdir/configure.gnu"; then |
| 1555 | echo && |
| 1556 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
| 1557 | elif test -f "$ac_srcdir/configure"; then |
| 1558 | echo && |
| 1559 | $SHELL "$ac_srcdir/configure" --help=recursive |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1560 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 1561 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1562 | fi || ac_status=$? |
| 1563 | cd "$ac_pwd" || { ac_status=$?; break; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1564 | done |
| 1565 | fi |
| 1566 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1567 | test -n "$ac_init_help" && exit $ac_status |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1568 | if $ac_init_version; then |
| 1569 | cat <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1570 | configure |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1571 | generated by GNU Autoconf 2.65 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1572 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1573 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1574 | This configure script is free software; the Free Software Foundation |
| 1575 | gives unlimited permission to copy, distribute and modify it. |
| 1576 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 1577 | exit |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 1578 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1579 | |
| 1580 | ## ------------------------ ## |
| 1581 | ## Autoconf initialization. ## |
| 1582 | ## ------------------------ ## |
| 1583 | |
| 1584 | # ac_fn_c_try_compile LINENO |
| 1585 | # -------------------------- |
| 1586 | # Try to compile conftest.$ac_ext, and return whether this succeeded. |
| 1587 | ac_fn_c_try_compile () |
| 1588 | { |
| 1589 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1590 | rm -f conftest.$ac_objext |
| 1591 | if { { ac_try="$ac_compile" |
| 1592 | case "(($ac_try" in |
| 1593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1594 | *) ac_try_echo=$ac_try;; |
| 1595 | esac |
| 1596 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1597 | $as_echo "$ac_try_echo"; } >&5 |
| 1598 | (eval "$ac_compile") 2>conftest.err |
| 1599 | ac_status=$? |
| 1600 | if test -s conftest.err; then |
| 1601 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1602 | cat conftest.er1 >&5 |
| 1603 | mv -f conftest.er1 conftest.err |
| 1604 | fi |
| 1605 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1606 | test $ac_status = 0; } && { |
| 1607 | test -z "$ac_c_werror_flag" || |
| 1608 | test ! -s conftest.err |
| 1609 | } && test -s conftest.$ac_objext; then : |
| 1610 | ac_retval=0 |
| 1611 | else |
| 1612 | $as_echo "$as_me: failed program was:" >&5 |
| 1613 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1614 | |
| 1615 | ac_retval=1 |
| 1616 | fi |
| 1617 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1618 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1619 | |
| 1620 | } # ac_fn_c_try_compile |
| 1621 | |
| 1622 | # ac_fn_c_try_link LINENO |
| 1623 | # ----------------------- |
| 1624 | # Try to link conftest.$ac_ext, and return whether this succeeded. |
| 1625 | ac_fn_c_try_link () |
| 1626 | { |
| 1627 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1628 | rm -f conftest.$ac_objext conftest$ac_exeext |
| 1629 | if { { ac_try="$ac_link" |
| 1630 | case "(($ac_try" in |
| 1631 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1632 | *) ac_try_echo=$ac_try;; |
| 1633 | esac |
| 1634 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1635 | $as_echo "$ac_try_echo"; } >&5 |
| 1636 | (eval "$ac_link") 2>conftest.err |
| 1637 | ac_status=$? |
| 1638 | if test -s conftest.err; then |
| 1639 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1640 | cat conftest.er1 >&5 |
| 1641 | mv -f conftest.er1 conftest.err |
| 1642 | fi |
| 1643 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1644 | test $ac_status = 0; } && { |
| 1645 | test -z "$ac_c_werror_flag" || |
| 1646 | test ! -s conftest.err |
| 1647 | } && test -s conftest$ac_exeext && { |
| 1648 | test "$cross_compiling" = yes || |
| 1649 | $as_test_x conftest$ac_exeext |
| 1650 | }; then : |
| 1651 | ac_retval=0 |
| 1652 | else |
| 1653 | $as_echo "$as_me: failed program was:" >&5 |
| 1654 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1655 | |
| 1656 | ac_retval=1 |
| 1657 | fi |
| 1658 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information |
| 1659 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would |
| 1660 | # interfere with the next link command; also delete a directory that is |
| 1661 | # left behind by Apple's compiler. We do this before executing the actions. |
| 1662 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1663 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1664 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1665 | |
| 1666 | } # ac_fn_c_try_link |
| 1667 | |
| 1668 | # ac_fn_c_try_cpp LINENO |
| 1669 | # ---------------------- |
| 1670 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. |
| 1671 | ac_fn_c_try_cpp () |
| 1672 | { |
| 1673 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1674 | if { { ac_try="$ac_cpp conftest.$ac_ext" |
| 1675 | case "(($ac_try" in |
| 1676 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1677 | *) ac_try_echo=$ac_try;; |
| 1678 | esac |
| 1679 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1680 | $as_echo "$ac_try_echo"; } >&5 |
| 1681 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err |
| 1682 | ac_status=$? |
| 1683 | if test -s conftest.err; then |
| 1684 | grep -v '^ *+' conftest.err >conftest.er1 |
| 1685 | cat conftest.er1 >&5 |
| 1686 | mv -f conftest.er1 conftest.err |
| 1687 | fi |
| 1688 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1689 | test $ac_status = 0; } >/dev/null && { |
| 1690 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
| 1691 | test ! -s conftest.err |
| 1692 | }; then : |
| 1693 | ac_retval=0 |
| 1694 | else |
| 1695 | $as_echo "$as_me: failed program was:" >&5 |
| 1696 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1697 | |
| 1698 | ac_retval=1 |
| 1699 | fi |
| 1700 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 1701 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1702 | |
| 1703 | } # ac_fn_c_try_cpp |
| 1704 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 1705 | # ac_fn_c_try_run LINENO |
| 1706 | # ---------------------- |
| 1707 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes |
| 1708 | # that executables *can* be run. |
| 1709 | ac_fn_c_try_run () |
| 1710 | { |
| 1711 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1712 | if { { ac_try="$ac_link" |
| 1713 | case "(($ac_try" in |
| 1714 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1715 | *) ac_try_echo=$ac_try;; |
| 1716 | esac |
| 1717 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1718 | $as_echo "$ac_try_echo"; } >&5 |
| 1719 | (eval "$ac_link") 2>&5 |
| 1720 | ac_status=$? |
| 1721 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1722 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' |
| 1723 | { { case "(($ac_try" in |
| 1724 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 1725 | *) ac_try_echo=$ac_try;; |
| 1726 | esac |
| 1727 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 1728 | $as_echo "$ac_try_echo"; } >&5 |
| 1729 | (eval "$ac_try") 2>&5 |
| 1730 | ac_status=$? |
| 1731 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 1732 | test $ac_status = 0; }; }; then : |
| 1733 | ac_retval=0 |
| 1734 | else |
| 1735 | $as_echo "$as_me: program exited with status $ac_status" >&5 |
| 1736 | $as_echo "$as_me: failed program was:" >&5 |
| 1737 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 1738 | |
| 1739 | ac_retval=$ac_status |
| 1740 | fi |
| 1741 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo |
| 1742 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1743 | as_fn_set_status $ac_retval |
| 1744 | |
| 1745 | } # ac_fn_c_try_run |
| 1746 | |
| 1747 | # ac_fn_c_check_type LINENO TYPE VAR INCLUDES |
| 1748 | # ------------------------------------------- |
| 1749 | # Tests whether TYPE exists after having included INCLUDES, setting cache |
| 1750 | # variable VAR accordingly. |
| 1751 | ac_fn_c_check_type () |
| 1752 | { |
| 1753 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1754 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1755 | $as_echo_n "checking for $2... " >&6; } |
| 1756 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1757 | $as_echo_n "(cached) " >&6 |
| 1758 | else |
| 1759 | eval "$3=no" |
| 1760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1761 | /* end confdefs.h. */ |
| 1762 | $4 |
| 1763 | int |
| 1764 | main () |
| 1765 | { |
| 1766 | if (sizeof ($2)) |
| 1767 | return 0; |
| 1768 | ; |
| 1769 | return 0; |
| 1770 | } |
| 1771 | _ACEOF |
| 1772 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1774 | /* end confdefs.h. */ |
| 1775 | $4 |
| 1776 | int |
| 1777 | main () |
| 1778 | { |
| 1779 | if (sizeof (($2))) |
| 1780 | return 0; |
| 1781 | ; |
| 1782 | return 0; |
| 1783 | } |
| 1784 | _ACEOF |
| 1785 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1786 | |
| 1787 | else |
| 1788 | eval "$3=yes" |
| 1789 | fi |
| 1790 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1791 | fi |
| 1792 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1793 | fi |
| 1794 | eval ac_res=\$$3 |
| 1795 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1796 | $as_echo "$ac_res" >&6; } |
| 1797 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1798 | |
| 1799 | } # ac_fn_c_check_type |
| 1800 | |
| 1801 | # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES |
| 1802 | # ------------------------------------------------------- |
| 1803 | # Tests whether HEADER exists and can be compiled using the include files in |
| 1804 | # INCLUDES, setting the cache variable VAR accordingly. |
| 1805 | ac_fn_c_check_header_compile () |
| 1806 | { |
| 1807 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1808 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1809 | $as_echo_n "checking for $2... " >&6; } |
| 1810 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1811 | $as_echo_n "(cached) " >&6 |
| 1812 | else |
| 1813 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1814 | /* end confdefs.h. */ |
| 1815 | $4 |
| 1816 | #include <$2> |
| 1817 | _ACEOF |
| 1818 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1819 | eval "$3=yes" |
| 1820 | else |
| 1821 | eval "$3=no" |
| 1822 | fi |
| 1823 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1824 | fi |
| 1825 | eval ac_res=\$$3 |
| 1826 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1827 | $as_echo "$ac_res" >&6; } |
| 1828 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1829 | |
| 1830 | } # ac_fn_c_check_header_compile |
| 1831 | |
| 1832 | # ac_fn_c_check_func LINENO FUNC VAR |
| 1833 | # ---------------------------------- |
| 1834 | # Tests whether FUNC exists, setting the cache variable VAR accordingly |
| 1835 | ac_fn_c_check_func () |
| 1836 | { |
| 1837 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1839 | $as_echo_n "checking for $2... " >&6; } |
| 1840 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1841 | $as_echo_n "(cached) " >&6 |
| 1842 | else |
| 1843 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1844 | /* end confdefs.h. */ |
| 1845 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. |
| 1846 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
| 1847 | #define $2 innocuous_$2 |
| 1848 | |
| 1849 | /* System header to define __stub macros and hopefully few prototypes, |
| 1850 | which can conflict with char $2 (); below. |
| 1851 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 1852 | <limits.h> exists even on freestanding compilers. */ |
| 1853 | |
| 1854 | #ifdef __STDC__ |
| 1855 | # include <limits.h> |
| 1856 | #else |
| 1857 | # include <assert.h> |
| 1858 | #endif |
| 1859 | |
| 1860 | #undef $2 |
| 1861 | |
| 1862 | /* Override any GCC internal prototype to avoid an error. |
| 1863 | Use char because int might match the return type of a GCC |
| 1864 | builtin and then its argument prototype would still apply. */ |
| 1865 | #ifdef __cplusplus |
| 1866 | extern "C" |
| 1867 | #endif |
| 1868 | char $2 (); |
| 1869 | /* The GNU C library defines this for functions which it implements |
| 1870 | to always fail with ENOSYS. Some functions are actually named |
| 1871 | something starting with __ and the normal name is an alias. */ |
| 1872 | #if defined __stub_$2 || defined __stub___$2 |
| 1873 | choke me |
| 1874 | #endif |
| 1875 | |
| 1876 | int |
| 1877 | main () |
| 1878 | { |
| 1879 | return $2 (); |
| 1880 | ; |
| 1881 | return 0; |
| 1882 | } |
| 1883 | _ACEOF |
| 1884 | if ac_fn_c_try_link "$LINENO"; then : |
| 1885 | eval "$3=yes" |
| 1886 | else |
| 1887 | eval "$3=no" |
| 1888 | fi |
| 1889 | rm -f core conftest.err conftest.$ac_objext \ |
| 1890 | conftest$ac_exeext conftest.$ac_ext |
| 1891 | fi |
| 1892 | eval ac_res=\$$3 |
| 1893 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1894 | $as_echo "$ac_res" >&6; } |
| 1895 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1896 | |
| 1897 | } # ac_fn_c_check_func |
| 1898 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1899 | # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES |
| 1900 | # ------------------------------------------------------- |
| 1901 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using |
| 1902 | # the include files in INCLUDES and setting the cache variable VAR |
| 1903 | # accordingly. |
| 1904 | ac_fn_c_check_header_mongrel () |
| 1905 | { |
| 1906 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1907 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1909 | $as_echo_n "checking for $2... " >&6; } |
| 1910 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1911 | $as_echo_n "(cached) " >&6 |
| 1912 | fi |
| 1913 | eval ac_res=\$$3 |
| 1914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1915 | $as_echo "$ac_res" >&6; } |
| 1916 | else |
| 1917 | # Is the header compilable? |
| 1918 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 |
| 1919 | $as_echo_n "checking $2 usability... " >&6; } |
| 1920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1921 | /* end confdefs.h. */ |
| 1922 | $4 |
| 1923 | #include <$2> |
| 1924 | _ACEOF |
| 1925 | if ac_fn_c_try_compile "$LINENO"; then : |
| 1926 | ac_header_compiler=yes |
| 1927 | else |
| 1928 | ac_header_compiler=no |
| 1929 | fi |
| 1930 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 1931 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 |
| 1932 | $as_echo "$ac_header_compiler" >&6; } |
| 1933 | |
| 1934 | # Is the header present? |
| 1935 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 |
| 1936 | $as_echo_n "checking $2 presence... " >&6; } |
| 1937 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1938 | /* end confdefs.h. */ |
| 1939 | #include <$2> |
| 1940 | _ACEOF |
| 1941 | if ac_fn_c_try_cpp "$LINENO"; then : |
| 1942 | ac_header_preproc=yes |
| 1943 | else |
| 1944 | ac_header_preproc=no |
| 1945 | fi |
| 1946 | rm -f conftest.err conftest.$ac_ext |
| 1947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 |
| 1948 | $as_echo "$ac_header_preproc" >&6; } |
| 1949 | |
| 1950 | # So? What about this header? |
| 1951 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( |
| 1952 | yes:no: ) |
| 1953 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 |
| 1954 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} |
| 1955 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1956 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1957 | ;; |
| 1958 | no:yes:* ) |
| 1959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 |
| 1960 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} |
| 1961 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 |
| 1962 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} |
| 1963 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 |
| 1964 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} |
| 1965 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 |
| 1966 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} |
| 1967 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 |
| 1968 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} |
| 1969 | ;; |
| 1970 | esac |
| 1971 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 |
| 1972 | $as_echo_n "checking for $2... " >&6; } |
| 1973 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 1974 | $as_echo_n "(cached) " >&6 |
| 1975 | else |
| 1976 | eval "$3=\$ac_header_compiler" |
| 1977 | fi |
| 1978 | eval ac_res=\$$3 |
| 1979 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 1980 | $as_echo "$ac_res" >&6; } |
| 1981 | fi |
| 1982 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 1983 | |
| 1984 | } # ac_fn_c_check_header_mongrel |
| 1985 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 1986 | # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES |
| 1987 | # -------------------------------------------- |
| 1988 | # Tries to find the compile-time value of EXPR in a program that includes |
| 1989 | # INCLUDES, setting VAR accordingly. Returns whether the value could be |
| 1990 | # computed |
| 1991 | ac_fn_c_compute_int () |
| 1992 | { |
| 1993 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 1994 | if test "$cross_compiling" = yes; then |
| 1995 | # Depending upon the size, compute the lo and hi bounds. |
| 1996 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 1997 | /* end confdefs.h. */ |
| 1998 | $4 |
| 1999 | int |
| 2000 | main () |
| 2001 | { |
| 2002 | static int test_array [1 - 2 * !(($2) >= 0)]; |
| 2003 | test_array [0] = 0 |
| 2004 | |
| 2005 | ; |
| 2006 | return 0; |
| 2007 | } |
| 2008 | _ACEOF |
| 2009 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2010 | ac_lo=0 ac_mid=0 |
| 2011 | while :; do |
| 2012 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2013 | /* end confdefs.h. */ |
| 2014 | $4 |
| 2015 | int |
| 2016 | main () |
| 2017 | { |
| 2018 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2019 | test_array [0] = 0 |
| 2020 | |
| 2021 | ; |
| 2022 | return 0; |
| 2023 | } |
| 2024 | _ACEOF |
| 2025 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2026 | ac_hi=$ac_mid; break |
| 2027 | else |
| 2028 | as_fn_arith $ac_mid + 1 && ac_lo=$as_val |
| 2029 | if test $ac_lo -le $ac_mid; then |
| 2030 | ac_lo= ac_hi= |
| 2031 | break |
| 2032 | fi |
| 2033 | as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val |
| 2034 | fi |
| 2035 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2036 | done |
| 2037 | else |
| 2038 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2039 | /* end confdefs.h. */ |
| 2040 | $4 |
| 2041 | int |
| 2042 | main () |
| 2043 | { |
| 2044 | static int test_array [1 - 2 * !(($2) < 0)]; |
| 2045 | test_array [0] = 0 |
| 2046 | |
| 2047 | ; |
| 2048 | return 0; |
| 2049 | } |
| 2050 | _ACEOF |
| 2051 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2052 | ac_hi=-1 ac_mid=-1 |
| 2053 | while :; do |
| 2054 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2055 | /* end confdefs.h. */ |
| 2056 | $4 |
| 2057 | int |
| 2058 | main () |
| 2059 | { |
| 2060 | static int test_array [1 - 2 * !(($2) >= $ac_mid)]; |
| 2061 | test_array [0] = 0 |
| 2062 | |
| 2063 | ; |
| 2064 | return 0; |
| 2065 | } |
| 2066 | _ACEOF |
| 2067 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2068 | ac_lo=$ac_mid; break |
| 2069 | else |
| 2070 | as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val |
| 2071 | if test $ac_mid -le $ac_hi; then |
| 2072 | ac_lo= ac_hi= |
| 2073 | break |
| 2074 | fi |
| 2075 | as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val |
| 2076 | fi |
| 2077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2078 | done |
| 2079 | else |
| 2080 | ac_lo= ac_hi= |
| 2081 | fi |
| 2082 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2083 | fi |
| 2084 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2085 | # Binary search between lo and hi bounds. |
| 2086 | while test "x$ac_lo" != "x$ac_hi"; do |
| 2087 | as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val |
| 2088 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2089 | /* end confdefs.h. */ |
| 2090 | $4 |
| 2091 | int |
| 2092 | main () |
| 2093 | { |
| 2094 | static int test_array [1 - 2 * !(($2) <= $ac_mid)]; |
| 2095 | test_array [0] = 0 |
| 2096 | |
| 2097 | ; |
| 2098 | return 0; |
| 2099 | } |
| 2100 | _ACEOF |
| 2101 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2102 | ac_hi=$ac_mid |
| 2103 | else |
| 2104 | as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val |
| 2105 | fi |
| 2106 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2107 | done |
| 2108 | case $ac_lo in #(( |
| 2109 | ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; |
| 2110 | '') ac_retval=1 ;; |
| 2111 | esac |
| 2112 | else |
| 2113 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2114 | /* end confdefs.h. */ |
| 2115 | $4 |
| 2116 | static long int longval () { return $2; } |
| 2117 | static unsigned long int ulongval () { return $2; } |
| 2118 | #include <stdio.h> |
| 2119 | #include <stdlib.h> |
| 2120 | int |
| 2121 | main () |
| 2122 | { |
| 2123 | |
| 2124 | FILE *f = fopen ("conftest.val", "w"); |
| 2125 | if (! f) |
| 2126 | return 1; |
| 2127 | if (($2) < 0) |
| 2128 | { |
| 2129 | long int i = longval (); |
| 2130 | if (i != ($2)) |
| 2131 | return 1; |
| 2132 | fprintf (f, "%ld", i); |
| 2133 | } |
| 2134 | else |
| 2135 | { |
| 2136 | unsigned long int i = ulongval (); |
| 2137 | if (i != ($2)) |
| 2138 | return 1; |
| 2139 | fprintf (f, "%lu", i); |
| 2140 | } |
| 2141 | /* Do not output a trailing newline, as this causes \r\n confusion |
| 2142 | on some platforms. */ |
| 2143 | return ferror (f) || fclose (f) != 0; |
| 2144 | |
| 2145 | ; |
| 2146 | return 0; |
| 2147 | } |
| 2148 | _ACEOF |
| 2149 | if ac_fn_c_try_run "$LINENO"; then : |
| 2150 | echo >>conftest.val; read $3 <conftest.val; ac_retval=0 |
| 2151 | else |
| 2152 | ac_retval=1 |
| 2153 | fi |
| 2154 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 2155 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 2156 | rm -f conftest.val |
| 2157 | |
| 2158 | fi |
| 2159 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2160 | as_fn_set_status $ac_retval |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2161 | |
| 2162 | } # ac_fn_c_compute_int |
| 2163 | |
| 2164 | # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES |
| 2165 | # ---------------------------------------------------- |
| 2166 | # Tries to find if the field MEMBER exists in type AGGR, after including |
| 2167 | # INCLUDES, setting cache variable VAR accordingly. |
| 2168 | ac_fn_c_check_member () |
| 2169 | { |
| 2170 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2171 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 |
| 2172 | $as_echo_n "checking for $2.$3... " >&6; } |
| 2173 | if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2174 | $as_echo_n "(cached) " >&6 |
| 2175 | else |
| 2176 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2177 | /* end confdefs.h. */ |
| 2178 | $5 |
| 2179 | int |
| 2180 | main () |
| 2181 | { |
| 2182 | static $2 ac_aggr; |
| 2183 | if (ac_aggr.$3) |
| 2184 | return 0; |
| 2185 | ; |
| 2186 | return 0; |
| 2187 | } |
| 2188 | _ACEOF |
| 2189 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2190 | eval "$4=yes" |
| 2191 | else |
| 2192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2193 | /* end confdefs.h. */ |
| 2194 | $5 |
| 2195 | int |
| 2196 | main () |
| 2197 | { |
| 2198 | static $2 ac_aggr; |
| 2199 | if (sizeof ac_aggr.$3) |
| 2200 | return 0; |
| 2201 | ; |
| 2202 | return 0; |
| 2203 | } |
| 2204 | _ACEOF |
| 2205 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2206 | eval "$4=yes" |
| 2207 | else |
| 2208 | eval "$4=no" |
| 2209 | fi |
| 2210 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2211 | fi |
| 2212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2213 | fi |
| 2214 | eval ac_res=\$$4 |
| 2215 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2216 | $as_echo "$ac_res" >&6; } |
| 2217 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2218 | |
| 2219 | } # ac_fn_c_check_member |
| 2220 | |
| 2221 | # ac_fn_c_check_decl LINENO SYMBOL VAR |
| 2222 | # ------------------------------------ |
| 2223 | # Tests whether SYMBOL is declared, setting cache variable VAR accordingly. |
| 2224 | ac_fn_c_check_decl () |
| 2225 | { |
| 2226 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 2227 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 |
| 2228 | $as_echo_n "checking whether $2 is declared... " >&6; } |
| 2229 | if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : |
| 2230 | $as_echo_n "(cached) " >&6 |
| 2231 | else |
| 2232 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 2233 | /* end confdefs.h. */ |
| 2234 | $4 |
| 2235 | int |
| 2236 | main () |
| 2237 | { |
| 2238 | #ifndef $2 |
| 2239 | (void) $2; |
| 2240 | #endif |
| 2241 | |
| 2242 | ; |
| 2243 | return 0; |
| 2244 | } |
| 2245 | _ACEOF |
| 2246 | if ac_fn_c_try_compile "$LINENO"; then : |
| 2247 | eval "$3=yes" |
| 2248 | else |
| 2249 | eval "$3=no" |
| 2250 | fi |
| 2251 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 2252 | fi |
| 2253 | eval ac_res=\$$3 |
| 2254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 |
| 2255 | $as_echo "$ac_res" >&6; } |
| 2256 | eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} |
| 2257 | |
| 2258 | } # ac_fn_c_check_decl |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2259 | cat >config.log <<_ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2260 | This file contains any messages produced by compilers while |
| 2261 | running configure, to aid debugging if configure makes a mistake. |
| 2262 | |
| 2263 | It was created by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2264 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2265 | |
| 2266 | $ $0 $@ |
| 2267 | |
| 2268 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2269 | exec 5>>config.log |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2270 | { |
| 2271 | cat <<_ASUNAME |
| 2272 | ## --------- ## |
| 2273 | ## Platform. ## |
| 2274 | ## --------- ## |
| 2275 | |
| 2276 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 2277 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
| 2278 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
| 2279 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
| 2280 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
| 2281 | |
| 2282 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
| 2283 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
| 2284 | |
| 2285 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
| 2286 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
| 2287 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2288 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2289 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
| 2290 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
| 2291 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
| 2292 | |
| 2293 | _ASUNAME |
| 2294 | |
| 2295 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2296 | for as_dir in $PATH |
| 2297 | do |
| 2298 | IFS=$as_save_IFS |
| 2299 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2300 | $as_echo "PATH: $as_dir" |
| 2301 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2302 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2303 | |
| 2304 | } >&5 |
| 2305 | |
| 2306 | cat >&5 <<_ACEOF |
| 2307 | |
| 2308 | |
| 2309 | ## ----------- ## |
| 2310 | ## Core tests. ## |
| 2311 | ## ----------- ## |
| 2312 | |
| 2313 | _ACEOF |
| 2314 | |
| 2315 | |
| 2316 | # Keep a trace of the command line. |
| 2317 | # Strip out --no-create and --no-recursion so they do not pile up. |
| 2318 | # Strip out --silent because we don't want to record it for future runs. |
| 2319 | # Also quote any args containing shell meta-characters. |
| 2320 | # Make two passes to allow for proper duplicate-argument suppression. |
| 2321 | ac_configure_args= |
| 2322 | ac_configure_args0= |
| 2323 | ac_configure_args1= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2324 | ac_must_keep_next=false |
| 2325 | for ac_pass in 1 2 |
| 2326 | do |
| 2327 | for ac_arg |
| 2328 | do |
| 2329 | case $ac_arg in |
| 2330 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
| 2331 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 2332 | | -silent | --silent | --silen | --sile | --sil) |
| 2333 | continue ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2334 | *\'*) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2335 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2336 | esac |
| 2337 | case $ac_pass in |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2338 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2339 | 2) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2340 | as_fn_append ac_configure_args1 " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2341 | if test $ac_must_keep_next = true; then |
| 2342 | ac_must_keep_next=false # Got value, back to normal. |
| 2343 | else |
| 2344 | case $ac_arg in |
| 2345 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
| 2346 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
| 2347 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
| 2348 | | -with-* | --with-* | -without-* | --without-* | --x) |
| 2349 | case "$ac_configure_args0 " in |
| 2350 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
| 2351 | esac |
| 2352 | ;; |
| 2353 | -* ) ac_must_keep_next=true ;; |
| 2354 | esac |
| 2355 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2356 | as_fn_append ac_configure_args " '$ac_arg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2357 | ;; |
| 2358 | esac |
| 2359 | done |
| 2360 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2361 | { ac_configure_args0=; unset ac_configure_args0;} |
| 2362 | { ac_configure_args1=; unset ac_configure_args1;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2363 | |
| 2364 | # When interrupted or exit'd, cleanup temporary files, and complete |
| 2365 | # config.log. We remove comments because anyway the quotes in there |
| 2366 | # would cause problems or look ugly. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2367 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
| 2368 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2369 | trap 'exit_status=$? |
| 2370 | # Save into config.log some information that might help in debugging. |
| 2371 | { |
| 2372 | echo |
| 2373 | |
| 2374 | cat <<\_ASBOX |
| 2375 | ## ---------------- ## |
| 2376 | ## Cache variables. ## |
| 2377 | ## ---------------- ## |
| 2378 | _ASBOX |
| 2379 | echo |
| 2380 | # The following way of writing the cache mishandles newlines in values, |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2381 | ( |
| 2382 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
| 2383 | eval ac_val=\$$ac_var |
| 2384 | case $ac_val in #( |
| 2385 | *${as_nl}*) |
| 2386 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2387 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2388 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2389 | esac |
| 2390 | case $ac_var in #( |
| 2391 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2392 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2393 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2394 | esac ;; |
| 2395 | esac |
| 2396 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2397 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2398 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
| 2399 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2400 | sed -n \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2401 | "s/'\''/'\''\\\\'\'''\''/g; |
| 2402 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
| 2403 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2404 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2405 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2406 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2407 | esac | |
| 2408 | sort |
| 2409 | ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2410 | echo |
| 2411 | |
| 2412 | cat <<\_ASBOX |
| 2413 | ## ----------------- ## |
| 2414 | ## Output variables. ## |
| 2415 | ## ----------------- ## |
| 2416 | _ASBOX |
| 2417 | echo |
| 2418 | for ac_var in $ac_subst_vars |
| 2419 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2420 | eval ac_val=\$$ac_var |
| 2421 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2422 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2423 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2424 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2425 | done | sort |
| 2426 | echo |
| 2427 | |
| 2428 | if test -n "$ac_subst_files"; then |
| 2429 | cat <<\_ASBOX |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2430 | ## ------------------- ## |
| 2431 | ## File substitutions. ## |
| 2432 | ## ------------------- ## |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2433 | _ASBOX |
| 2434 | echo |
| 2435 | for ac_var in $ac_subst_files |
| 2436 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2437 | eval ac_val=\$$ac_var |
| 2438 | case $ac_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2439 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2440 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2441 | $as_echo "$ac_var='\''$ac_val'\''" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2442 | done | sort |
| 2443 | echo |
| 2444 | fi |
| 2445 | |
| 2446 | if test -s confdefs.h; then |
| 2447 | cat <<\_ASBOX |
| 2448 | ## ----------- ## |
| 2449 | ## confdefs.h. ## |
| 2450 | ## ----------- ## |
| 2451 | _ASBOX |
| 2452 | echo |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2453 | cat confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2454 | echo |
| 2455 | fi |
| 2456 | test "$ac_signal" != 0 && |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2457 | $as_echo "$as_me: caught signal $ac_signal" |
| 2458 | $as_echo "$as_me: exit $exit_status" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2459 | } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2460 | rm -f core *.core core.conftest.* && |
| 2461 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2462 | exit $exit_status |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2463 | ' 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2464 | for ac_signal in 1 2 13 15; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2465 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2466 | done |
| 2467 | ac_signal=0 |
| 2468 | |
| 2469 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2470 | rm -f -r conftest* confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2471 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2472 | $as_echo "/* confdefs.h */" > confdefs.h |
| 2473 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2474 | # Predefined preprocessor variables. |
| 2475 | |
| 2476 | cat >>confdefs.h <<_ACEOF |
| 2477 | #define PACKAGE_NAME "$PACKAGE_NAME" |
| 2478 | _ACEOF |
| 2479 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2480 | cat >>confdefs.h <<_ACEOF |
| 2481 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
| 2482 | _ACEOF |
| 2483 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2484 | cat >>confdefs.h <<_ACEOF |
| 2485 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
| 2486 | _ACEOF |
| 2487 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2488 | cat >>confdefs.h <<_ACEOF |
| 2489 | #define PACKAGE_STRING "$PACKAGE_STRING" |
| 2490 | _ACEOF |
| 2491 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2492 | cat >>confdefs.h <<_ACEOF |
| 2493 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
| 2494 | _ACEOF |
| 2495 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2496 | cat >>confdefs.h <<_ACEOF |
| 2497 | #define PACKAGE_URL "$PACKAGE_URL" |
| 2498 | _ACEOF |
| 2499 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2500 | |
| 2501 | # Let the site file select an alternate cache file if it wants to. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2502 | # Prefer an explicitly selected file to automatically selected ones. |
| 2503 | ac_site_file1=NONE |
| 2504 | ac_site_file2=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2505 | if test -n "$CONFIG_SITE"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2506 | ac_site_file1=$CONFIG_SITE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2507 | elif test "x$prefix" != xNONE; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2508 | ac_site_file1=$prefix/share/config.site |
| 2509 | ac_site_file2=$prefix/etc/config.site |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2510 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2511 | ac_site_file1=$ac_default_prefix/share/config.site |
| 2512 | ac_site_file2=$ac_default_prefix/etc/config.site |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2513 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2514 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2515 | do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2516 | test "x$ac_site_file" = xNONE && continue |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2517 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2518 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2519 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2520 | sed 's/^/| /' "$ac_site_file" >&5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2521 | . "$ac_site_file" |
| 2522 | fi |
| 2523 | done |
| 2524 | |
| 2525 | if test -r "$cache_file"; then |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2526 | # Some versions of bash will fail to source /dev/null (special files |
| 2527 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. |
| 2528 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2529 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2530 | $as_echo "$as_me: loading cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2531 | case $cache_file in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2532 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
| 2533 | *) . "./$cache_file";; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2534 | esac |
| 2535 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2536 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2537 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2538 | $as_echo "$as_me: creating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2539 | >$cache_file |
| 2540 | fi |
| 2541 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 2542 | as_fn_append ac_header_list " stdlib.h" |
| 2543 | as_fn_append ac_header_list " unistd.h" |
| 2544 | as_fn_append ac_header_list " sys/param.h" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2545 | # Check that the precious variables saved in the cache have kept the same |
| 2546 | # value. |
| 2547 | ac_cache_corrupted=false |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2548 | for ac_var in $ac_precious_vars; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2549 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
| 2550 | eval ac_new_set=\$ac_env_${ac_var}_set |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2551 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
| 2552 | eval ac_new_val=\$ac_env_${ac_var}_value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2553 | case $ac_old_set,$ac_new_set in |
| 2554 | set,) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2555 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2556 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2557 | ac_cache_corrupted=: ;; |
| 2558 | ,set) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2559 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2560 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2561 | ac_cache_corrupted=: ;; |
| 2562 | ,);; |
| 2563 | *) |
| 2564 | if test "x$ac_old_val" != "x$ac_new_val"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2565 | # differences in whitespace do not lead to failure. |
| 2566 | ac_old_val_w=`echo x $ac_old_val` |
| 2567 | ac_new_val_w=`echo x $ac_new_val` |
| 2568 | if test "$ac_old_val_w" != "$ac_new_val_w"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2569 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2570 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
| 2571 | ac_cache_corrupted=: |
| 2572 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2573 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2574 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} |
| 2575 | eval $ac_var=\$ac_old_val |
| 2576 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2577 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2578 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2579 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2580 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2581 | fi;; |
| 2582 | esac |
| 2583 | # Pass precious variables to config.status. |
| 2584 | if test "$ac_new_set" = set; then |
| 2585 | case $ac_new_val in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2586 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2587 | *) ac_arg=$ac_var=$ac_new_val ;; |
| 2588 | esac |
| 2589 | case " $ac_configure_args " in |
| 2590 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2591 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2592 | esac |
| 2593 | fi |
| 2594 | done |
| 2595 | if $ac_cache_corrupted; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2596 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2597 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2598 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2599 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2600 | as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2601 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2602 | ## -------------------- ## |
| 2603 | ## Main body of script. ## |
| 2604 | ## -------------------- ## |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2605 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2606 | ac_ext=c |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2607 | ac_cpp='$CPP $CPPFLAGS' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2608 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2609 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2610 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2611 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2612 | |
| 2613 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2614 | ac_aux_dir= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2615 | for ac_dir in config "$srcdir"/config; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2616 | for ac_t in install-sh install.sh shtool; do |
| 2617 | if test -f "$ac_dir/$ac_t"; then |
| 2618 | ac_aux_dir=$ac_dir |
| 2619 | ac_install_sh="$ac_aux_dir/$ac_t -c" |
| 2620 | break 2 |
| 2621 | fi |
| 2622 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2623 | done |
| 2624 | if test -z "$ac_aux_dir"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2625 | as_fn_error "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2626 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2627 | |
| 2628 | # These three variables are undocumented and unsupported, |
| 2629 | # and are intended to be withdrawn in a future Autoconf release. |
| 2630 | # They can cause serious problems if a builder's source tree is in a directory |
| 2631 | # whose full name contains unusual characters. |
| 2632 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
| 2633 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
| 2634 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
| 2635 | |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 2636 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 2637 | ac_config_headers="$ac_config_headers lib/config.h" |
| 2638 | |
| 2639 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 2640 | MCONFIG=./MCONFIG |
| 2641 | |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2642 | BINARY_TYPE=bin |
| 2643 | E2FSPROGS_VERSION=`grep E2FSPROGS_VERSION ${srcdir}/version.h \ |
| 2644 | | awk '{print $3}' | tr \" " " | awk '{print $1}'` |
| 2645 | DATE=`grep E2FSPROGS_DATE ${srcdir}/version.h | awk '{print $3}' \ |
| 2646 | | tr \" " "` |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 2647 | E2FSPROGS_DAY=`echo $DATE | awk -F- '{print $1}'` |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2648 | MONTH=`echo $DATE | awk -F- '{print $2}'` |
| 2649 | YEAR=`echo $DATE | awk -F- '{print $3}'` |
| 2650 | |
Theodore Ts'o | 14790ed | 1999-01-12 23:32:52 +0000 | [diff] [blame] | 2651 | if expr $YEAR ">" 1900 > /dev/null ; then |
| 2652 | E2FSPROGS_YEAR=$YEAR |
| 2653 | elif expr $YEAR ">" 90 >/dev/null ; then |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2654 | E2FSPROGS_YEAR=19$YEAR |
| 2655 | else |
| 2656 | E2FSPROGS_YEAR=20$YEAR |
| 2657 | fi |
| 2658 | |
| 2659 | case $MONTH in |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2660 | Jan) MONTH_NUM=01; E2FSPROGS_MONTH="January" ;; |
| 2661 | Feb) MONTH_NUM=02; E2FSPROGS_MONTH="February" ;; |
| 2662 | Mar) MONTH_NUM=03; E2FSPROGS_MONTH="March" ;; |
| 2663 | Apr) MONTH_NUM=04; E2FSPROGS_MONTH="April" ;; |
| 2664 | May) MONTH_NUM=05; E2FSPROGS_MONTH="May" ;; |
| 2665 | Jun) MONTH_NUM=06; E2FSPROGS_MONTH="June" ;; |
| 2666 | Jul) MONTH_NUM=07; E2FSPROGS_MONTH="July" ;; |
| 2667 | Aug) MONTH_NUM=08; E2FSPROGS_MONTH="August" ;; |
| 2668 | Sep) MONTH_NUM=09; E2FSPROGS_MONTH="September" ;; |
| 2669 | Oct) MONTH_NUM=10; E2FSPROGS_MONTH="October" ;; |
| 2670 | Nov) MONTH_NUM=11; E2FSPROGS_MONTH="November" ;; |
| 2671 | Dec) MONTH_NUM=12; E2FSPROGS_MONTH="December" ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2672 | *) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown month $MONTH??" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2673 | $as_echo "$as_me: WARNING: Unknown month $MONTH??" >&2;} ;; |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2674 | esac |
| 2675 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2676 | base_ver=`echo $E2FSPROGS_VERSION | \ |
| 2677 | sed -e 's/-WIP//' -e 's/pre-//' -e 's/-PLUS//'` |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2678 | |
| 2679 | date_spec=${E2FSPROGS_YEAR}.${MONTH_NUM}.${E2FSPROGS_DAY} |
| 2680 | |
| 2681 | case $E2FSPROGS_VERSION in |
| 2682 | *-WIP|pre-*) |
Theodore Ts'o | ab06396 | 2008-07-07 16:07:43 -0400 | [diff] [blame] | 2683 | E2FSPROGS_PKGVER="$base_ver~WIP-$E2FSPROGS_YEAR-$MONTH_NUM-$E2FSPROGS_DAY" |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2684 | ;; |
| 2685 | *) |
| 2686 | E2FSPROGS_PKGVER="$base_ver" |
| 2687 | ;; |
| 2688 | esac |
| 2689 | |
| 2690 | unset DATE MONTH YEAR base_ver pre_vers date_spec |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2691 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2692 | $as_echo "Generating configuration file for e2fsprogs version $E2FSPROGS_VERSION" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2693 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2694 | $as_echo "Release date is ${E2FSPROGS_MONTH}, ${E2FSPROGS_YEAR}" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 2695 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2696 | |
| 2697 | |
| 2698 | |
Andreas Dilger | 927566a | 2006-11-12 19:41:25 -0500 | [diff] [blame] | 2699 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2700 | # Make sure we can run config.sub. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2701 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2702 | as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2703 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2704 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2705 | $as_echo_n "checking build system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2706 | if test "${ac_cv_build+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2707 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2708 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2709 | ac_build_alias=$build_alias |
| 2710 | test "x$ac_build_alias" = x && |
| 2711 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
| 2712 | test "x$ac_build_alias" = x && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2713 | as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2714 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2715 | as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2716 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2717 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2719 | $as_echo "$ac_cv_build" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2720 | case $ac_cv_build in |
| 2721 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2722 | *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2723 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2724 | build=$ac_cv_build |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2725 | ac_save_IFS=$IFS; IFS='-' |
| 2726 | set x $ac_cv_build |
| 2727 | shift |
| 2728 | build_cpu=$1 |
| 2729 | build_vendor=$2 |
| 2730 | shift; shift |
| 2731 | # Remember, the first character of IFS is used to create $*, |
| 2732 | # except with old shells: |
| 2733 | build_os=$* |
| 2734 | IFS=$ac_save_IFS |
| 2735 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2736 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 2737 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2738 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2739 | $as_echo_n "checking host system type... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2740 | if test "${ac_cv_host+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2741 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2742 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2743 | if test "x$host_alias" = x; then |
| 2744 | ac_cv_host=$ac_cv_build |
| 2745 | else |
| 2746 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2747 | as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2748 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2749 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2750 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2752 | $as_echo "$ac_cv_host" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2753 | case $ac_cv_host in |
| 2754 | *-*-*) ;; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2755 | *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2756 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2757 | host=$ac_cv_host |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2758 | ac_save_IFS=$IFS; IFS='-' |
| 2759 | set x $ac_cv_host |
| 2760 | shift |
| 2761 | host_cpu=$1 |
| 2762 | host_vendor=$2 |
| 2763 | shift; shift |
| 2764 | # Remember, the first character of IFS is used to create $*, |
| 2765 | # except with old shells: |
| 2766 | host_os=$* |
| 2767 | IFS=$ac_save_IFS |
| 2768 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2769 | |
| 2770 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2771 | DLOPEN_LIB='' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2772 | ac_ext=c |
| 2773 | ac_cpp='$CPP $CPPFLAGS' |
| 2774 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 2775 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 2776 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 2777 | if test -n "$ac_tool_prefix"; then |
| 2778 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 2779 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2781 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2782 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2783 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2784 | else |
| 2785 | if test -n "$CC"; then |
| 2786 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2787 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2788 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2789 | for as_dir in $PATH |
| 2790 | do |
| 2791 | IFS=$as_save_IFS |
| 2792 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2793 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2794 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2795 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2796 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2797 | break 2 |
| 2798 | fi |
| 2799 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2800 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2801 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2802 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2803 | fi |
| 2804 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2805 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2806 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2807 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2808 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2809 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2810 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2811 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2812 | fi |
| 2813 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2814 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2815 | fi |
| 2816 | if test -z "$ac_cv_prog_CC"; then |
| 2817 | ac_ct_CC=$CC |
| 2818 | # Extract the first word of "gcc", so it can be a program name with args. |
| 2819 | set dummy gcc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2820 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2821 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2822 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2823 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2824 | else |
| 2825 | if test -n "$ac_ct_CC"; then |
| 2826 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 2827 | else |
| 2828 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2829 | for as_dir in $PATH |
| 2830 | do |
| 2831 | IFS=$as_save_IFS |
| 2832 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2833 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2834 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2835 | ac_cv_prog_ac_ct_CC="gcc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2836 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2837 | break 2 |
| 2838 | fi |
| 2839 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2840 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2841 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2842 | |
| 2843 | fi |
| 2844 | fi |
| 2845 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 2846 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2848 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2849 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2850 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2851 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2852 | fi |
| 2853 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2854 | if test "x$ac_ct_CC" = x; then |
| 2855 | CC="" |
| 2856 | else |
| 2857 | case $cross_compiling:$ac_tool_warned in |
| 2858 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2859 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2860 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2861 | ac_tool_warned=yes ;; |
| 2862 | esac |
| 2863 | CC=$ac_ct_CC |
| 2864 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2865 | else |
| 2866 | CC="$ac_cv_prog_CC" |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2867 | fi |
| 2868 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2869 | if test -z "$CC"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2870 | if test -n "$ac_tool_prefix"; then |
| 2871 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2872 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2873 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2874 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2875 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2876 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 2877 | else |
| 2878 | if test -n "$CC"; then |
| 2879 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2880 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2882 | for as_dir in $PATH |
| 2883 | do |
| 2884 | IFS=$as_save_IFS |
| 2885 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2886 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2888 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2889 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2890 | break 2 |
| 2891 | fi |
| 2892 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2893 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2894 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2895 | |
| 2896 | fi |
| 2897 | fi |
| 2898 | CC=$ac_cv_prog_CC |
| 2899 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2901 | $as_echo "$CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2902 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2904 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2905 | fi |
| 2906 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2907 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2908 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2909 | fi |
| 2910 | if test -z "$CC"; then |
| 2911 | # Extract the first word of "cc", so it can be a program name with args. |
| 2912 | set dummy cc; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2913 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2914 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2915 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2916 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2917 | else |
| 2918 | if test -n "$CC"; then |
| 2919 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2920 | else |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2921 | ac_prog_rejected=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2922 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2923 | for as_dir in $PATH |
| 2924 | do |
| 2925 | IFS=$as_save_IFS |
| 2926 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2927 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2928 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2929 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 2930 | ac_prog_rejected=yes |
| 2931 | continue |
| 2932 | fi |
| 2933 | ac_cv_prog_CC="cc" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2934 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2935 | break 2 |
| 2936 | fi |
| 2937 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2938 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2939 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2940 | |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2941 | if test $ac_prog_rejected = yes; then |
| 2942 | # We found a bogon in the path, so make sure we never use it. |
| 2943 | set dummy $ac_cv_prog_CC |
| 2944 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2945 | if test $# != 0; then |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2946 | # We chose a different compiler from the bogus one. |
| 2947 | # However, it has the same basename, so the bogon will be chosen |
| 2948 | # first if we set CC to just the basename; use the full file name. |
| 2949 | shift |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2950 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2951 | fi |
| 2952 | fi |
| 2953 | fi |
| 2954 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2955 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2956 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2957 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2958 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2959 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2960 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2961 | $as_echo "no" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2962 | fi |
| 2963 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2964 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2965 | fi |
| 2966 | if test -z "$CC"; then |
| 2967 | if test -n "$ac_tool_prefix"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2968 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2969 | do |
| 2970 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 2971 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2973 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2974 | if test "${ac_cv_prog_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 2975 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 2976 | else |
| 2977 | if test -n "$CC"; then |
| 2978 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 2979 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 2981 | for as_dir in $PATH |
| 2982 | do |
| 2983 | IFS=$as_save_IFS |
| 2984 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 2986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2987 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2989 | break 2 |
| 2990 | fi |
| 2991 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2992 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 2993 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2994 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2995 | fi |
| 2996 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 2997 | CC=$ac_cv_prog_CC |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 2998 | if test -n "$CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 2999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3000 | $as_echo "$CC" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3001 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3003 | $as_echo "no" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3004 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3007 | test -n "$CC" && break |
| 3008 | done |
| 3009 | fi |
| 3010 | if test -z "$CC"; then |
| 3011 | ac_ct_CC=$CC |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3012 | for ac_prog in cl.exe |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3013 | do |
| 3014 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3015 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3016 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3017 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3018 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3019 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3020 | else |
| 3021 | if test -n "$ac_ct_CC"; then |
| 3022 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3023 | else |
| 3024 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3025 | for as_dir in $PATH |
| 3026 | do |
| 3027 | IFS=$as_save_IFS |
| 3028 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3029 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3030 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3031 | ac_cv_prog_ac_ct_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3032 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3033 | break 2 |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3034 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3035 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3036 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3037 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3038 | |
| 3039 | fi |
| 3040 | fi |
| 3041 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3042 | if test -n "$ac_ct_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3043 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3044 | $as_echo "$ac_ct_CC" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3045 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3046 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3047 | $as_echo "no" >&6; } |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3048 | fi |
| 3049 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3050 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3051 | test -n "$ac_ct_CC" && break |
| 3052 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3053 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3054 | if test "x$ac_ct_CC" = x; then |
| 3055 | CC="" |
| 3056 | else |
| 3057 | case $cross_compiling:$ac_tool_warned in |
| 3058 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3059 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3060 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3061 | ac_tool_warned=yes ;; |
| 3062 | esac |
| 3063 | CC=$ac_ct_CC |
| 3064 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3065 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3066 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3067 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3068 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3069 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3070 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3071 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3072 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3073 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3074 | |
| 3075 | # Provide some information about the compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3076 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3077 | set X $ac_compile |
| 3078 | ac_compiler=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3079 | for ac_option in --version -v -V -qversion; do |
| 3080 | { { ac_try="$ac_compiler $ac_option >&5" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3081 | case "(($ac_try" in |
| 3082 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3083 | *) ac_try_echo=$ac_try;; |
| 3084 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3085 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3086 | $as_echo "$ac_try_echo"; } >&5 |
| 3087 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3088 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3089 | if test -s conftest.err; then |
| 3090 | sed '10a\ |
| 3091 | ... rest of stderr output deleted ... |
| 3092 | 10q' conftest.err >conftest.er1 |
| 3093 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3094 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3095 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3096 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3097 | test $ac_status = 0; } |
| 3098 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3099 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3100 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3101 | /* end confdefs.h. */ |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3102 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3103 | int |
| 3104 | main () |
| 3105 | { |
| 3106 | |
| 3107 | ; |
| 3108 | return 0; |
| 3109 | } |
| 3110 | _ACEOF |
| 3111 | ac_clean_files_save=$ac_clean_files |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3112 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3113 | # Try to create an executable without -o first, disregard a.out. |
| 3114 | # It will help us diagnose broken compilers, and finding out an intuition |
| 3115 | # of exeext. |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3116 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 |
| 3117 | $as_echo_n "checking whether the C compiler works... " >&6; } |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3118 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
| 3119 | |
| 3120 | # The possible output files: |
| 3121 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" |
| 3122 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3123 | ac_rmfiles= |
| 3124 | for ac_file in $ac_files |
| 3125 | do |
| 3126 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3127 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3128 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
| 3129 | esac |
| 3130 | done |
| 3131 | rm -f $ac_rmfiles |
| 3132 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3133 | if { { ac_try="$ac_link_default" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3134 | case "(($ac_try" in |
| 3135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3136 | *) ac_try_echo=$ac_try;; |
| 3137 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3138 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3139 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3140 | (eval "$ac_link_default") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3141 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3142 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3143 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3144 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
| 3145 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
| 3146 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
| 3147 | # so that the user can short-circuit this test for compilers unknown to |
| 3148 | # Autoconf. |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3149 | for ac_file in $ac_files '' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3150 | do |
| 3151 | test -f "$ac_file" || continue |
| 3152 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3153 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3154 | ;; |
| 3155 | [ab].out ) |
| 3156 | # We found the default executable, but exeext='' is most |
| 3157 | # certainly right. |
| 3158 | break;; |
| 3159 | *.* ) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3160 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3161 | then :; else |
| 3162 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
| 3163 | fi |
| 3164 | # We set ac_cv_exeext here because the later test for it is not |
| 3165 | # safe: cross compilers may not add the suffix if given an `-o' |
| 3166 | # argument, so we may need to know it at that point already. |
| 3167 | # Even if this section looks crufty: it has the advantage of |
| 3168 | # actually working. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3169 | break;; |
| 3170 | * ) |
| 3171 | break;; |
| 3172 | esac |
| 3173 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3174 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
| 3175 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3176 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 3177 | ac_file='' |
| 3178 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3179 | if test -z "$ac_file"; then : |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3181 | $as_echo "no" >&6; } |
| 3182 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3183 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3184 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3185 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3186 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3187 | { as_fn_set_status 77 |
| 3188 | as_fn_error "C compiler cannot create executables |
| 3189 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3190 | else |
| 3191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 3192 | $as_echo "yes" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3193 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3194 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 |
| 3195 | $as_echo_n "checking for C compiler default output file name... " >&6; } |
| 3196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 |
| 3197 | $as_echo "$ac_file" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3198 | ac_exeext=$ac_cv_exeext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3199 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3200 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3201 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3202 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3203 | $as_echo_n "checking for suffix of executables... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3204 | if { { ac_try="$ac_link" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3205 | case "(($ac_try" in |
| 3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3207 | *) ac_try_echo=$ac_try;; |
| 3208 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3209 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3210 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3211 | (eval "$ac_link") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3212 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3213 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3214 | test $ac_status = 0; }; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3215 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
| 3216 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
| 3217 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
| 3218 | # `rm'. |
| 3219 | for ac_file in conftest.exe conftest conftest.*; do |
| 3220 | test -f "$ac_file" || continue |
| 3221 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3222 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3223 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3224 | break;; |
| 3225 | * ) break;; |
| 3226 | esac |
| 3227 | done |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3228 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3229 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3230 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3231 | as_fn_error "cannot compute suffix of executables: cannot compile and link |
| 3232 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3233 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3234 | rm -f conftest conftest$ac_cv_exeext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3235 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3236 | $as_echo "$ac_cv_exeext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3237 | |
| 3238 | rm -f conftest.$ac_ext |
| 3239 | EXEEXT=$ac_cv_exeext |
| 3240 | ac_exeext=$EXEEXT |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3241 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3242 | /* end confdefs.h. */ |
| 3243 | #include <stdio.h> |
| 3244 | int |
| 3245 | main () |
| 3246 | { |
| 3247 | FILE *f = fopen ("conftest.out", "w"); |
| 3248 | return ferror (f) || fclose (f) != 0; |
| 3249 | |
| 3250 | ; |
| 3251 | return 0; |
| 3252 | } |
| 3253 | _ACEOF |
| 3254 | ac_clean_files="$ac_clean_files conftest.out" |
| 3255 | # Check that the compiler produces executables we can run. If not, either |
| 3256 | # the compiler is broken, or we cross compile. |
| 3257 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 |
| 3258 | $as_echo_n "checking whether we are cross compiling... " >&6; } |
| 3259 | if test "$cross_compiling" != yes; then |
| 3260 | { { ac_try="$ac_link" |
| 3261 | case "(($ac_try" in |
| 3262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3263 | *) ac_try_echo=$ac_try;; |
| 3264 | esac |
| 3265 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3266 | $as_echo "$ac_try_echo"; } >&5 |
| 3267 | (eval "$ac_link") 2>&5 |
| 3268 | ac_status=$? |
| 3269 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3270 | test $ac_status = 0; } |
| 3271 | if { ac_try='./conftest$ac_cv_exeext' |
| 3272 | { { case "(($ac_try" in |
| 3273 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3274 | *) ac_try_echo=$ac_try;; |
| 3275 | esac |
| 3276 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3277 | $as_echo "$ac_try_echo"; } >&5 |
| 3278 | (eval "$ac_try") 2>&5 |
| 3279 | ac_status=$? |
| 3280 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3281 | test $ac_status = 0; }; }; then |
| 3282 | cross_compiling=no |
| 3283 | else |
| 3284 | if test "$cross_compiling" = maybe; then |
| 3285 | cross_compiling=yes |
| 3286 | else |
| 3287 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3288 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3289 | as_fn_error "cannot run C compiled programs. |
| 3290 | If you meant to cross compile, use \`--host'. |
| 3291 | See \`config.log' for more details." "$LINENO" 5; } |
| 3292 | fi |
| 3293 | fi |
| 3294 | fi |
| 3295 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 |
| 3296 | $as_echo "$cross_compiling" >&6; } |
| 3297 | |
| 3298 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out |
| 3299 | ac_clean_files=$ac_clean_files_save |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3301 | $as_echo_n "checking for suffix of object files... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3302 | if test "${ac_cv_objext+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3303 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3304 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3305 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3306 | /* end confdefs.h. */ |
| 3307 | |
| 3308 | int |
| 3309 | main () |
| 3310 | { |
| 3311 | |
| 3312 | ; |
| 3313 | return 0; |
| 3314 | } |
| 3315 | _ACEOF |
| 3316 | rm -f conftest.o conftest.obj |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3317 | if { { ac_try="$ac_compile" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3318 | case "(($ac_try" in |
| 3319 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3320 | *) ac_try_echo=$ac_try;; |
| 3321 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3322 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3323 | $as_echo "$ac_try_echo"; } >&5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3324 | (eval "$ac_compile") 2>&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3325 | ac_status=$? |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3326 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3327 | test $ac_status = 0; }; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3328 | for ac_file in conftest.o conftest.obj conftest.*; do |
| 3329 | test -f "$ac_file" || continue; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3330 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3331 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3332 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
| 3333 | break;; |
| 3334 | esac |
| 3335 | done |
| 3336 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3337 | $as_echo "$as_me: failed program was:" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3338 | sed 's/^/| /' conftest.$ac_ext >&5 |
| 3339 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3340 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3341 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3342 | as_fn_error "cannot compute suffix of object files: cannot compile |
| 3343 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3344 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3345 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
| 3346 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3347 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3348 | $as_echo "$ac_cv_objext" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3349 | OBJEXT=$ac_cv_objext |
| 3350 | ac_objext=$OBJEXT |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3351 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3352 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3353 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3354 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3355 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3356 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3357 | /* end confdefs.h. */ |
| 3358 | |
| 3359 | int |
| 3360 | main () |
| 3361 | { |
| 3362 | #ifndef __GNUC__ |
| 3363 | choke me |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3364 | #endif |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3365 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3366 | ; |
| 3367 | return 0; |
| 3368 | } |
| 3369 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3370 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3371 | ac_compiler_gnu=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3372 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3373 | ac_compiler_gnu=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3374 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3375 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3376 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 3377 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3378 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3380 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3381 | if test $ac_compiler_gnu = yes; then |
| 3382 | GCC=yes |
| 3383 | else |
| 3384 | GCC= |
| 3385 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3386 | ac_test_CFLAGS=${CFLAGS+set} |
| 3387 | ac_save_CFLAGS=$CFLAGS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3388 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3389 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3390 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3391 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 3392 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3393 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 3394 | ac_c_werror_flag=yes |
| 3395 | ac_cv_prog_cc_g=no |
| 3396 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3397 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3398 | /* end confdefs.h. */ |
| 3399 | |
| 3400 | int |
| 3401 | main () |
| 3402 | { |
| 3403 | |
| 3404 | ; |
| 3405 | return 0; |
| 3406 | } |
| 3407 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3408 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3409 | ac_cv_prog_cc_g=yes |
| 3410 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3411 | CFLAGS="" |
| 3412 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3413 | /* end confdefs.h. */ |
| 3414 | |
| 3415 | int |
| 3416 | main () |
| 3417 | { |
| 3418 | |
| 3419 | ; |
| 3420 | return 0; |
| 3421 | } |
| 3422 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3423 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3425 | else |
| 3426 | ac_c_werror_flag=$ac_save_c_werror_flag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3427 | CFLAGS="-g" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3428 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3429 | /* end confdefs.h. */ |
| 3430 | |
| 3431 | int |
| 3432 | main () |
| 3433 | { |
| 3434 | |
| 3435 | ; |
| 3436 | return 0; |
| 3437 | } |
| 3438 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3439 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3440 | ac_cv_prog_cc_g=yes |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3441 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3442 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3443 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3445 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3446 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3447 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 3448 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3450 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3451 | if test "$ac_test_CFLAGS" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3452 | CFLAGS=$ac_save_CFLAGS |
Theodore Ts'o | 73ae2d4 | 2000-02-02 16:13:14 +0000 | [diff] [blame] | 3453 | elif test $ac_cv_prog_cc_g = yes; then |
| 3454 | if test "$GCC" = yes; then |
| 3455 | CFLAGS="-g -O2" |
| 3456 | else |
| 3457 | CFLAGS="-g" |
| 3458 | fi |
| 3459 | else |
| 3460 | if test "$GCC" = yes; then |
| 3461 | CFLAGS="-O2" |
| 3462 | else |
| 3463 | CFLAGS= |
| 3464 | fi |
| 3465 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3467 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3468 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3469 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3470 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3471 | ac_cv_prog_cc_c89=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3472 | ac_save_CC=$CC |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3473 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3474 | /* end confdefs.h. */ |
| 3475 | #include <stdarg.h> |
| 3476 | #include <stdio.h> |
| 3477 | #include <sys/types.h> |
| 3478 | #include <sys/stat.h> |
| 3479 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 3480 | struct buf { int x; }; |
| 3481 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 3482 | static char *e (p, i) |
| 3483 | char **p; |
| 3484 | int i; |
| 3485 | { |
| 3486 | return p[i]; |
| 3487 | } |
| 3488 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 3489 | { |
| 3490 | char *s; |
| 3491 | va_list v; |
| 3492 | va_start (v,p); |
| 3493 | s = g (p, va_arg (v,int)); |
| 3494 | va_end (v); |
| 3495 | return s; |
| 3496 | } |
| 3497 | |
| 3498 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 3499 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 3500 | These don't provoke an error unfortunately, instead are silently treated |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3501 | as 'x'. The following induces an error, until -std is added to get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3502 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 3503 | array size at least. It's necessary to write '\x00'==0 to get something |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3504 | that's true only with -std. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3505 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 3506 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3507 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 3508 | inside strings and character constants. */ |
| 3509 | #define FOO(x) 'x' |
| 3510 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 3511 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3512 | int test (int i, double x); |
| 3513 | struct s1 {int (*f) (int a);}; |
| 3514 | struct s2 {int (*f) (double a);}; |
| 3515 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 3516 | int argc; |
| 3517 | char **argv; |
| 3518 | int |
| 3519 | main () |
| 3520 | { |
| 3521 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 3522 | ; |
| 3523 | return 0; |
| 3524 | } |
| 3525 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3526 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 3527 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3528 | do |
| 3529 | CC="$ac_save_CC $ac_arg" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3530 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3531 | ac_cv_prog_cc_c89=$ac_arg |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3532 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3533 | rm -f core conftest.err conftest.$ac_objext |
| 3534 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3535 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3536 | rm -f conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3537 | CC=$ac_save_CC |
| 3538 | |
| 3539 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3540 | # AC_CACHE_VAL |
| 3541 | case "x$ac_cv_prog_cc_c89" in |
| 3542 | x) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3544 | $as_echo "none needed" >&6; } ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3545 | xno) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3546 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3547 | $as_echo "unsupported" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3548 | *) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 3549 | CC="$CC $ac_cv_prog_cc_c89" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3550 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 3551 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3552 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3553 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 3554 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3555 | fi |
| 3556 | |
| 3557 | ac_ext=c |
| 3558 | ac_cpp='$CPP $CPPFLAGS' |
| 3559 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3560 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3561 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3562 | |
| 3563 | |
| 3564 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 |
| 3565 | $as_echo_n "checking for dlopen in -ldl... " >&6; } |
| 3566 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then : |
| 3567 | $as_echo_n "(cached) " >&6 |
| 3568 | else |
| 3569 | ac_check_lib_save_LIBS=$LIBS |
| 3570 | LIBS="-ldl $LIBS" |
| 3571 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3572 | /* end confdefs.h. */ |
| 3573 | |
| 3574 | /* Override any GCC internal prototype to avoid an error. |
| 3575 | Use char because int might match the return type of a GCC |
| 3576 | builtin and then its argument prototype would still apply. */ |
| 3577 | #ifdef __cplusplus |
| 3578 | extern "C" |
| 3579 | #endif |
| 3580 | char dlopen (); |
| 3581 | int |
| 3582 | main () |
| 3583 | { |
| 3584 | return dlopen (); |
| 3585 | ; |
| 3586 | return 0; |
| 3587 | } |
| 3588 | _ACEOF |
| 3589 | if ac_fn_c_try_link "$LINENO"; then : |
| 3590 | ac_cv_lib_dl_dlopen=yes |
| 3591 | else |
| 3592 | ac_cv_lib_dl_dlopen=no |
| 3593 | fi |
| 3594 | rm -f core conftest.err conftest.$ac_objext \ |
| 3595 | conftest$ac_exeext conftest.$ac_ext |
| 3596 | LIBS=$ac_check_lib_save_LIBS |
| 3597 | fi |
| 3598 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 |
| 3599 | $as_echo "$ac_cv_lib_dl_dlopen" >&6; } |
| 3600 | if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : |
| 3601 | DLOPEN_LIB=-ldl |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 3602 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3603 | $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h |
| 3604 | |
| 3605 | fi |
| 3606 | |
| 3607 | |
| 3608 | WITH_DIET_LIBC= |
| 3609 | |
| 3610 | # Check whether --with-diet-libc was given. |
| 3611 | if test "${with_diet_libc+set}" = set; then : |
| 3612 | withval=$with_diet_libc; CC="diet cc -nostdinc" |
| 3613 | WITH_DIET_LIBC=yes |
| 3614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: CC=$CC" >&5 |
| 3615 | $as_echo "CC=$CC" >&6; } |
| 3616 | fi |
| 3617 | |
| 3618 | # Check whether --with-cc was given. |
| 3619 | if test "${with_cc+set}" = set; then : |
| 3620 | withval=$with_cc; as_fn_error "--with-cc no longer supported; use CC= instead" "$LINENO" 5 |
| 3621 | fi |
| 3622 | |
| 3623 | |
| 3624 | # Check whether --with-ccopts was given. |
| 3625 | if test "${with_ccopts+set}" = set; then : |
| 3626 | withval=$with_ccopts; as_fn_error "--with-ccopts no longer supported; use CFLAGS= instead" "$LINENO" 5 |
| 3627 | fi |
| 3628 | |
| 3629 | |
| 3630 | # Check whether --with-ldopts was given. |
| 3631 | if test "${with_ldopts+set}" = set; then : |
| 3632 | withval=$with_ldopts; as_fn_error "--with-ldopts no longer supported; use LDFLAGS= instead" "$LINENO" 5 |
| 3633 | fi |
| 3634 | |
| 3635 | ac_ext=c |
| 3636 | ac_cpp='$CPP $CPPFLAGS' |
| 3637 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 3638 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 3639 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 3640 | if test -n "$ac_tool_prefix"; then |
| 3641 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
| 3642 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
| 3643 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3644 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3645 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3646 | $as_echo_n "(cached) " >&6 |
| 3647 | else |
| 3648 | if test -n "$CC"; then |
| 3649 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3650 | else |
| 3651 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3652 | for as_dir in $PATH |
| 3653 | do |
| 3654 | IFS=$as_save_IFS |
| 3655 | test -z "$as_dir" && as_dir=. |
| 3656 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3657 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3658 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
| 3659 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3660 | break 2 |
| 3661 | fi |
| 3662 | done |
| 3663 | done |
| 3664 | IFS=$as_save_IFS |
| 3665 | |
| 3666 | fi |
| 3667 | fi |
| 3668 | CC=$ac_cv_prog_CC |
| 3669 | if test -n "$CC"; then |
| 3670 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3671 | $as_echo "$CC" >&6; } |
| 3672 | else |
| 3673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3674 | $as_echo "no" >&6; } |
| 3675 | fi |
| 3676 | |
| 3677 | |
| 3678 | fi |
| 3679 | if test -z "$ac_cv_prog_CC"; then |
| 3680 | ac_ct_CC=$CC |
| 3681 | # Extract the first word of "gcc", so it can be a program name with args. |
| 3682 | set dummy gcc; ac_word=$2 |
| 3683 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3684 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3685 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3686 | $as_echo_n "(cached) " >&6 |
| 3687 | else |
| 3688 | if test -n "$ac_ct_CC"; then |
| 3689 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3690 | else |
| 3691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3692 | for as_dir in $PATH |
| 3693 | do |
| 3694 | IFS=$as_save_IFS |
| 3695 | test -z "$as_dir" && as_dir=. |
| 3696 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3697 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3698 | ac_cv_prog_ac_ct_CC="gcc" |
| 3699 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3700 | break 2 |
| 3701 | fi |
| 3702 | done |
| 3703 | done |
| 3704 | IFS=$as_save_IFS |
| 3705 | |
| 3706 | fi |
| 3707 | fi |
| 3708 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3709 | if test -n "$ac_ct_CC"; then |
| 3710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3711 | $as_echo "$ac_ct_CC" >&6; } |
| 3712 | else |
| 3713 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3714 | $as_echo "no" >&6; } |
| 3715 | fi |
| 3716 | |
| 3717 | if test "x$ac_ct_CC" = x; then |
| 3718 | CC="" |
| 3719 | else |
| 3720 | case $cross_compiling:$ac_tool_warned in |
| 3721 | yes:) |
| 3722 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3723 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3724 | ac_tool_warned=yes ;; |
| 3725 | esac |
| 3726 | CC=$ac_ct_CC |
| 3727 | fi |
| 3728 | else |
| 3729 | CC="$ac_cv_prog_CC" |
| 3730 | fi |
| 3731 | |
| 3732 | if test -z "$CC"; then |
| 3733 | if test -n "$ac_tool_prefix"; then |
| 3734 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
| 3735 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
| 3736 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3737 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3738 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3739 | $as_echo_n "(cached) " >&6 |
| 3740 | else |
| 3741 | if test -n "$CC"; then |
| 3742 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3743 | else |
| 3744 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3745 | for as_dir in $PATH |
| 3746 | do |
| 3747 | IFS=$as_save_IFS |
| 3748 | test -z "$as_dir" && as_dir=. |
| 3749 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3750 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3751 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
| 3752 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3753 | break 2 |
| 3754 | fi |
| 3755 | done |
| 3756 | done |
| 3757 | IFS=$as_save_IFS |
| 3758 | |
| 3759 | fi |
| 3760 | fi |
| 3761 | CC=$ac_cv_prog_CC |
| 3762 | if test -n "$CC"; then |
| 3763 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3764 | $as_echo "$CC" >&6; } |
| 3765 | else |
| 3766 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3767 | $as_echo "no" >&6; } |
| 3768 | fi |
| 3769 | |
| 3770 | |
| 3771 | fi |
| 3772 | fi |
| 3773 | if test -z "$CC"; then |
| 3774 | # Extract the first word of "cc", so it can be a program name with args. |
| 3775 | set dummy cc; ac_word=$2 |
| 3776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3777 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3778 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3779 | $as_echo_n "(cached) " >&6 |
| 3780 | else |
| 3781 | if test -n "$CC"; then |
| 3782 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3783 | else |
| 3784 | ac_prog_rejected=no |
| 3785 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3786 | for as_dir in $PATH |
| 3787 | do |
| 3788 | IFS=$as_save_IFS |
| 3789 | test -z "$as_dir" && as_dir=. |
| 3790 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3791 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3792 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
| 3793 | ac_prog_rejected=yes |
| 3794 | continue |
| 3795 | fi |
| 3796 | ac_cv_prog_CC="cc" |
| 3797 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3798 | break 2 |
| 3799 | fi |
| 3800 | done |
| 3801 | done |
| 3802 | IFS=$as_save_IFS |
| 3803 | |
| 3804 | if test $ac_prog_rejected = yes; then |
| 3805 | # We found a bogon in the path, so make sure we never use it. |
| 3806 | set dummy $ac_cv_prog_CC |
| 3807 | shift |
| 3808 | if test $# != 0; then |
| 3809 | # We chose a different compiler from the bogus one. |
| 3810 | # However, it has the same basename, so the bogon will be chosen |
| 3811 | # first if we set CC to just the basename; use the full file name. |
| 3812 | shift |
| 3813 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
| 3814 | fi |
| 3815 | fi |
| 3816 | fi |
| 3817 | fi |
| 3818 | CC=$ac_cv_prog_CC |
| 3819 | if test -n "$CC"; then |
| 3820 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3821 | $as_echo "$CC" >&6; } |
| 3822 | else |
| 3823 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3824 | $as_echo "no" >&6; } |
| 3825 | fi |
| 3826 | |
| 3827 | |
| 3828 | fi |
| 3829 | if test -z "$CC"; then |
| 3830 | if test -n "$ac_tool_prefix"; then |
| 3831 | for ac_prog in cl.exe |
| 3832 | do |
| 3833 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
| 3834 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
| 3835 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3836 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3837 | if test "${ac_cv_prog_CC+set}" = set; then : |
| 3838 | $as_echo_n "(cached) " >&6 |
| 3839 | else |
| 3840 | if test -n "$CC"; then |
| 3841 | ac_cv_prog_CC="$CC" # Let the user override the test. |
| 3842 | else |
| 3843 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3844 | for as_dir in $PATH |
| 3845 | do |
| 3846 | IFS=$as_save_IFS |
| 3847 | test -z "$as_dir" && as_dir=. |
| 3848 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3849 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3850 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
| 3851 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3852 | break 2 |
| 3853 | fi |
| 3854 | done |
| 3855 | done |
| 3856 | IFS=$as_save_IFS |
| 3857 | |
| 3858 | fi |
| 3859 | fi |
| 3860 | CC=$ac_cv_prog_CC |
| 3861 | if test -n "$CC"; then |
| 3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 |
| 3863 | $as_echo "$CC" >&6; } |
| 3864 | else |
| 3865 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3866 | $as_echo "no" >&6; } |
| 3867 | fi |
| 3868 | |
| 3869 | |
| 3870 | test -n "$CC" && break |
| 3871 | done |
| 3872 | fi |
| 3873 | if test -z "$CC"; then |
| 3874 | ac_ct_CC=$CC |
| 3875 | for ac_prog in cl.exe |
| 3876 | do |
| 3877 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 3878 | set dummy $ac_prog; ac_word=$2 |
| 3879 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 3880 | $as_echo_n "checking for $ac_word... " >&6; } |
| 3881 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : |
| 3882 | $as_echo_n "(cached) " >&6 |
| 3883 | else |
| 3884 | if test -n "$ac_ct_CC"; then |
| 3885 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
| 3886 | else |
| 3887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 3888 | for as_dir in $PATH |
| 3889 | do |
| 3890 | IFS=$as_save_IFS |
| 3891 | test -z "$as_dir" && as_dir=. |
| 3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 3893 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 3894 | ac_cv_prog_ac_ct_CC="$ac_prog" |
| 3895 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 3896 | break 2 |
| 3897 | fi |
| 3898 | done |
| 3899 | done |
| 3900 | IFS=$as_save_IFS |
| 3901 | |
| 3902 | fi |
| 3903 | fi |
| 3904 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
| 3905 | if test -n "$ac_ct_CC"; then |
| 3906 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 |
| 3907 | $as_echo "$ac_ct_CC" >&6; } |
| 3908 | else |
| 3909 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 3910 | $as_echo "no" >&6; } |
| 3911 | fi |
| 3912 | |
| 3913 | |
| 3914 | test -n "$ac_ct_CC" && break |
| 3915 | done |
| 3916 | |
| 3917 | if test "x$ac_ct_CC" = x; then |
| 3918 | CC="" |
| 3919 | else |
| 3920 | case $cross_compiling:$ac_tool_warned in |
| 3921 | yes:) |
| 3922 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 3923 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 3924 | ac_tool_warned=yes ;; |
| 3925 | esac |
| 3926 | CC=$ac_ct_CC |
| 3927 | fi |
| 3928 | fi |
| 3929 | |
| 3930 | fi |
| 3931 | |
| 3932 | |
| 3933 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
| 3934 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
| 3935 | as_fn_error "no acceptable C compiler found in \$PATH |
| 3936 | See \`config.log' for more details." "$LINENO" 5; } |
| 3937 | |
| 3938 | # Provide some information about the compiler. |
| 3939 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 |
| 3940 | set X $ac_compile |
| 3941 | ac_compiler=$2 |
| 3942 | for ac_option in --version -v -V -qversion; do |
| 3943 | { { ac_try="$ac_compiler $ac_option >&5" |
| 3944 | case "(($ac_try" in |
| 3945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
| 3946 | *) ac_try_echo=$ac_try;; |
| 3947 | esac |
| 3948 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" |
| 3949 | $as_echo "$ac_try_echo"; } >&5 |
| 3950 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err |
| 3951 | ac_status=$? |
| 3952 | if test -s conftest.err; then |
| 3953 | sed '10a\ |
| 3954 | ... rest of stderr output deleted ... |
| 3955 | 10q' conftest.err >conftest.er1 |
| 3956 | cat conftest.er1 >&5 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3957 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 3958 | rm -f conftest.er1 conftest.err |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 3959 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 |
| 3960 | test $ac_status = 0; } |
| 3961 | done |
| 3962 | |
| 3963 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 |
| 3964 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } |
| 3965 | if test "${ac_cv_c_compiler_gnu+set}" = set; then : |
| 3966 | $as_echo_n "(cached) " >&6 |
| 3967 | else |
| 3968 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 3969 | /* end confdefs.h. */ |
| 3970 | |
| 3971 | int |
| 3972 | main () |
| 3973 | { |
| 3974 | #ifndef __GNUC__ |
| 3975 | choke me |
| 3976 | #endif |
| 3977 | |
| 3978 | ; |
| 3979 | return 0; |
| 3980 | } |
| 3981 | _ACEOF |
| 3982 | if ac_fn_c_try_compile "$LINENO"; then : |
| 3983 | ac_compiler_gnu=yes |
| 3984 | else |
| 3985 | ac_compiler_gnu=no |
| 3986 | fi |
| 3987 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 3988 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
| 3989 | |
| 3990 | fi |
| 3991 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 |
| 3992 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } |
| 3993 | if test $ac_compiler_gnu = yes; then |
| 3994 | GCC=yes |
| 3995 | else |
| 3996 | GCC= |
| 3997 | fi |
| 3998 | ac_test_CFLAGS=${CFLAGS+set} |
| 3999 | ac_save_CFLAGS=$CFLAGS |
| 4000 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 |
| 4001 | $as_echo_n "checking whether $CC accepts -g... " >&6; } |
| 4002 | if test "${ac_cv_prog_cc_g+set}" = set; then : |
| 4003 | $as_echo_n "(cached) " >&6 |
| 4004 | else |
| 4005 | ac_save_c_werror_flag=$ac_c_werror_flag |
| 4006 | ac_c_werror_flag=yes |
| 4007 | ac_cv_prog_cc_g=no |
| 4008 | CFLAGS="-g" |
| 4009 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4010 | /* end confdefs.h. */ |
| 4011 | |
| 4012 | int |
| 4013 | main () |
| 4014 | { |
| 4015 | |
| 4016 | ; |
| 4017 | return 0; |
| 4018 | } |
| 4019 | _ACEOF |
| 4020 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4021 | ac_cv_prog_cc_g=yes |
| 4022 | else |
| 4023 | CFLAGS="" |
| 4024 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4025 | /* end confdefs.h. */ |
| 4026 | |
| 4027 | int |
| 4028 | main () |
| 4029 | { |
| 4030 | |
| 4031 | ; |
| 4032 | return 0; |
| 4033 | } |
| 4034 | _ACEOF |
| 4035 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4036 | |
| 4037 | else |
| 4038 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4039 | CFLAGS="-g" |
| 4040 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4041 | /* end confdefs.h. */ |
| 4042 | |
| 4043 | int |
| 4044 | main () |
| 4045 | { |
| 4046 | |
| 4047 | ; |
| 4048 | return 0; |
| 4049 | } |
| 4050 | _ACEOF |
| 4051 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4052 | ac_cv_prog_cc_g=yes |
| 4053 | fi |
| 4054 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4055 | fi |
| 4056 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4057 | fi |
| 4058 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 4059 | ac_c_werror_flag=$ac_save_c_werror_flag |
| 4060 | fi |
| 4061 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 |
| 4062 | $as_echo "$ac_cv_prog_cc_g" >&6; } |
| 4063 | if test "$ac_test_CFLAGS" = set; then |
| 4064 | CFLAGS=$ac_save_CFLAGS |
| 4065 | elif test $ac_cv_prog_cc_g = yes; then |
| 4066 | if test "$GCC" = yes; then |
| 4067 | CFLAGS="-g -O2" |
| 4068 | else |
| 4069 | CFLAGS="-g" |
| 4070 | fi |
| 4071 | else |
| 4072 | if test "$GCC" = yes; then |
| 4073 | CFLAGS="-O2" |
| 4074 | else |
| 4075 | CFLAGS= |
| 4076 | fi |
| 4077 | fi |
| 4078 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 |
| 4079 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } |
| 4080 | if test "${ac_cv_prog_cc_c89+set}" = set; then : |
| 4081 | $as_echo_n "(cached) " >&6 |
| 4082 | else |
| 4083 | ac_cv_prog_cc_c89=no |
| 4084 | ac_save_CC=$CC |
| 4085 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 4086 | /* end confdefs.h. */ |
| 4087 | #include <stdarg.h> |
| 4088 | #include <stdio.h> |
| 4089 | #include <sys/types.h> |
| 4090 | #include <sys/stat.h> |
| 4091 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
| 4092 | struct buf { int x; }; |
| 4093 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
| 4094 | static char *e (p, i) |
| 4095 | char **p; |
| 4096 | int i; |
| 4097 | { |
| 4098 | return p[i]; |
| 4099 | } |
| 4100 | static char *f (char * (*g) (char **, int), char **p, ...) |
| 4101 | { |
| 4102 | char *s; |
| 4103 | va_list v; |
| 4104 | va_start (v,p); |
| 4105 | s = g (p, va_arg (v,int)); |
| 4106 | va_end (v); |
| 4107 | return s; |
| 4108 | } |
| 4109 | |
| 4110 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
| 4111 | function prototypes and stuff, but not '\xHH' hex character constants. |
| 4112 | These don't provoke an error unfortunately, instead are silently treated |
| 4113 | as 'x'. The following induces an error, until -std is added to get |
| 4114 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
| 4115 | array size at least. It's necessary to write '\x00'==0 to get something |
| 4116 | that's true only with -std. */ |
| 4117 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
| 4118 | |
| 4119 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
| 4120 | inside strings and character constants. */ |
| 4121 | #define FOO(x) 'x' |
| 4122 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
| 4123 | |
| 4124 | int test (int i, double x); |
| 4125 | struct s1 {int (*f) (int a);}; |
| 4126 | struct s2 {int (*f) (double a);}; |
| 4127 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
| 4128 | int argc; |
| 4129 | char **argv; |
| 4130 | int |
| 4131 | main () |
| 4132 | { |
| 4133 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
| 4134 | ; |
| 4135 | return 0; |
| 4136 | } |
| 4137 | _ACEOF |
| 4138 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
| 4139 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
| 4140 | do |
| 4141 | CC="$ac_save_CC $ac_arg" |
| 4142 | if ac_fn_c_try_compile "$LINENO"; then : |
| 4143 | ac_cv_prog_cc_c89=$ac_arg |
| 4144 | fi |
| 4145 | rm -f core conftest.err conftest.$ac_objext |
| 4146 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
| 4147 | done |
| 4148 | rm -f conftest.$ac_ext |
| 4149 | CC=$ac_save_CC |
| 4150 | |
| 4151 | fi |
| 4152 | # AC_CACHE_VAL |
| 4153 | case "x$ac_cv_prog_cc_c89" in |
| 4154 | x) |
| 4155 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 |
| 4156 | $as_echo "none needed" >&6; } ;; |
| 4157 | xno) |
| 4158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 |
| 4159 | $as_echo "unsupported" >&6; } ;; |
| 4160 | *) |
| 4161 | CC="$CC $ac_cv_prog_cc_c89" |
| 4162 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 |
| 4163 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; |
| 4164 | esac |
| 4165 | if test "x$ac_cv_prog_cc_c89" != xno; then : |
| 4166 | |
| 4167 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4168 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4169 | ac_ext=c |
| 4170 | ac_cpp='$CPP $CPPFLAGS' |
| 4171 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4172 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4173 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4174 | |
Theodore Ts'o | 9b3018a | 2011-08-11 14:56:49 -0400 | [diff] [blame] | 4175 | if test "$GCC" = yes; then |
| 4176 | RDYNAMIC="-rdynamic" |
| 4177 | |
| 4178 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4179 | ac_ext=c |
| 4180 | ac_cpp='$CPP $CPPFLAGS' |
| 4181 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4182 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4183 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4185 | $as_echo_n "checking how to run the C preprocessor... " >&6; } |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4186 | # On Suns, sometimes $CPP names a directory. |
| 4187 | if test -n "$CPP" && test -d "$CPP"; then |
| 4188 | CPP= |
| 4189 | fi |
| 4190 | if test -z "$CPP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4191 | if test "${ac_cv_prog_CPP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4192 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4193 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4194 | # Double quotes because CPP needs to be expanded |
| 4195 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
| 4196 | do |
| 4197 | ac_preproc_ok=false |
| 4198 | for ac_c_preproc_warn_flag in '' yes |
| 4199 | do |
| 4200 | # Use a header file that comes with gcc, so configuring glibc |
| 4201 | # with a fresh cross-compiler works. |
| 4202 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4203 | # <limits.h> exists even on freestanding compilers. |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4204 | # On the NeXT, cc -E runs the code through the compiler's parser, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4205 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4207 | /* end confdefs.h. */ |
| 4208 | #ifdef __STDC__ |
| 4209 | # include <limits.h> |
| 4210 | #else |
| 4211 | # include <assert.h> |
| 4212 | #endif |
| 4213 | Syntax error |
| 4214 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4215 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4216 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4217 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4218 | # Broken: fails on valid input. |
| 4219 | continue |
| 4220 | fi |
| 4221 | rm -f conftest.err conftest.$ac_ext |
| 4222 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4223 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4224 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4225 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4226 | /* end confdefs.h. */ |
| 4227 | #include <ac_nonexistent.h> |
| 4228 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4229 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4230 | # Broken: success on invalid input. |
| 4231 | continue |
Theodore Ts'o | f8bd980 | 1999-10-26 04:19:45 +0000 | [diff] [blame] | 4232 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4233 | # Passes both tests. |
| 4234 | ac_preproc_ok=: |
| 4235 | break |
| 4236 | fi |
| 4237 | rm -f conftest.err conftest.$ac_ext |
| 4238 | |
| 4239 | done |
| 4240 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4241 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4242 | if $ac_preproc_ok; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4243 | break |
| 4244 | fi |
| 4245 | |
| 4246 | done |
| 4247 | ac_cv_prog_CPP=$CPP |
| 4248 | |
| 4249 | fi |
| 4250 | CPP=$ac_cv_prog_CPP |
| 4251 | else |
| 4252 | ac_cv_prog_CPP=$CPP |
| 4253 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4255 | $as_echo "$CPP" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4256 | ac_preproc_ok=false |
| 4257 | for ac_c_preproc_warn_flag in '' yes |
| 4258 | do |
| 4259 | # Use a header file that comes with gcc, so configuring glibc |
| 4260 | # with a fresh cross-compiler works. |
| 4261 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
| 4262 | # <limits.h> exists even on freestanding compilers. |
| 4263 | # On the NeXT, cc -E runs the code through the compiler's parser, |
| 4264 | # not just through cpp. "Syntax error" is here to catch this case. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4265 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4266 | /* end confdefs.h. */ |
| 4267 | #ifdef __STDC__ |
| 4268 | # include <limits.h> |
| 4269 | #else |
| 4270 | # include <assert.h> |
| 4271 | #endif |
| 4272 | Syntax error |
| 4273 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4274 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4275 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4276 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4277 | # Broken: fails on valid input. |
| 4278 | continue |
| 4279 | fi |
| 4280 | rm -f conftest.err conftest.$ac_ext |
| 4281 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4282 | # OK, works on sane cases. Now check whether nonexistent headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4283 | # can be detected and how. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4284 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4285 | /* end confdefs.h. */ |
| 4286 | #include <ac_nonexistent.h> |
| 4287 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4288 | if ac_fn_c_try_cpp "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4289 | # Broken: success on invalid input. |
| 4290 | continue |
| 4291 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4292 | # Passes both tests. |
| 4293 | ac_preproc_ok=: |
| 4294 | break |
| 4295 | fi |
| 4296 | rm -f conftest.err conftest.$ac_ext |
| 4297 | |
| 4298 | done |
| 4299 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
| 4300 | rm -f conftest.err conftest.$ac_ext |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4301 | if $ac_preproc_ok; then : |
| 4302 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4303 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4304 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4305 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4306 | as_fn_error "C preprocessor \"$CPP\" fails sanity check |
| 4307 | See \`config.log' for more details." "$LINENO" 5; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4308 | fi |
| 4309 | |
| 4310 | ac_ext=c |
| 4311 | ac_cpp='$CPP $CPPFLAGS' |
| 4312 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
| 4313 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
| 4314 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
| 4315 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4316 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for additional special compiler flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4317 | $as_echo_n "checking for additional special compiler flags... " >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4318 | if test "$GCC" = yes |
| 4319 | then |
| 4320 | case "$host_cpu" in |
| 4321 | alpha) addcflags="-mieee" ;; |
| 4322 | esac |
| 4323 | fi |
| 4324 | if test "x$addcflags" != x |
| 4325 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4326 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $addcflags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4327 | $as_echo "$addcflags" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4328 | CFLAGS="$addcflags $CFLAGS" |
| 4329 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4330 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4331 | $as_echo "(none)" >&6; } |
Matthias Andree | b1c92f9 | 2004-02-23 21:30:11 +0100 | [diff] [blame] | 4332 | fi |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4333 | LIB_EXT=.a |
| 4334 | STATIC_LIB_EXT=.a |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4335 | PROFILED_LIB_EXT=.a |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 4336 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4337 | # Check whether --with-root-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4338 | if test "${with_root_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4339 | withval=$with_root_prefix; root_prefix=$withval |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 4340 | else |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 4341 | root_prefix=NONE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4342 | fi |
| 4343 | # Check whether --enable-maintainer-mode was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4344 | if test "${enable_maintainer_mode+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4345 | enableval=$enable_maintainer_mode; if test "$enableval" = "no" |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4346 | then |
| 4347 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4348 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4349 | $as_echo "Disabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4350 | else |
| 4351 | MAINTAINER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling maintainer mode" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4353 | $as_echo "Enabling maintainer mode" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4354 | fi |
| 4355 | |
| 4356 | else |
| 4357 | MAINTAINER_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4358 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling maintainer mode by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4359 | $as_echo "Disabling maintainer mode by default" >&6; } |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4360 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4361 | fi |
Theodore Ts'o | 98919bd | 2005-02-04 10:43:58 -0500 | [diff] [blame] | 4362 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4363 | |
Theodore Ts'o | 5aa6c3f | 2010-05-17 19:21:42 -0400 | [diff] [blame] | 4364 | # Check whether --enable-symlink-install was given. |
| 4365 | if test "${enable_symlink_install+set}" = set; then : |
| 4366 | enableval=$enable_symlink_install; if test "$enableval" = "no" |
| 4367 | then |
| 4368 | LINK_INSTALL_FLAGS=-f |
| 4369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4370 | $as_echo "Disabling symlinks for install" >&6; } |
| 4371 | else |
| 4372 | LINK_INSTALL_FLAGS=-sf |
| 4373 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for install" >&5 |
| 4374 | $as_echo "Enabling symlinks for install" >&6; } |
| 4375 | fi |
| 4376 | |
| 4377 | else |
| 4378 | LINK_INSTALL_FLAGS=-f |
| 4379 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for install" >&5 |
| 4380 | $as_echo "Disabling symlinks for install" >&6; } |
| 4381 | |
| 4382 | fi |
| 4383 | |
| 4384 | |
| 4385 | # Check whether --enable-symlink-build was given. |
| 4386 | if test "${enable_symlink_build+set}" = set; then : |
| 4387 | enableval=$enable_symlink_build; if test "$enableval" = "no" |
| 4388 | then |
| 4389 | LINK_BUILD_FLAGS= |
| 4390 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4391 | $as_echo "Disabling symlinks for build" >&6; } |
| 4392 | else |
| 4393 | LINK_BUILD_FLAGS=-s |
| 4394 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling symlinks for build" >&5 |
| 4395 | $as_echo "Enabling symlinks for build" >&6; } |
| 4396 | fi |
| 4397 | |
| 4398 | else |
| 4399 | LINK_BUILD_FLAGS= |
| 4400 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling symlinks for build" >&5 |
| 4401 | $as_echo "Disabling symlinks for build" >&6; } |
| 4402 | |
| 4403 | fi |
| 4404 | |
| 4405 | |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4406 | # Check whether --enable-verbose-makecmds was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4407 | if test "${enable_verbose_makecmds+set}" = set; then : |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4408 | enableval=$enable_verbose_makecmds; if test "$enableval" = "no" |
| 4409 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4410 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4411 | $as_echo "Disabling verbose make commands" >&6; } |
| 4412 | E=@echo |
| 4413 | Q=@ |
| 4414 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4416 | $as_echo "Enabling verbose make commands" >&6; } |
| 4417 | E=@\\# |
| 4418 | Q= |
| 4419 | fi |
| 4420 | |
| 4421 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4422 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling verbose make commands" >&5 |
Theodore Ts'o | c13351f | 2009-07-02 00:11:17 -0400 | [diff] [blame] | 4423 | $as_echo "Disabling verbose make commands" >&6; } |
| 4424 | E=@echo |
| 4425 | Q=@ |
| 4426 | |
| 4427 | fi |
| 4428 | |
| 4429 | |
| 4430 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4431 | # Check whether --enable-compression was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4432 | if test "${enable_compression+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4433 | enableval=$enable_compression; if test "$enableval" = "no" |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4434 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4435 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4436 | $as_echo "Disabling compression support" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4437 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4438 | |
| 4439 | $as_echo "#define ENABLE_COMPRESSION 1" >>confdefs.h |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4440 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4441 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling compression support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4442 | $as_echo "Enabling compression support" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4443 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Compression support is experimental" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4444 | $as_echo "$as_me: WARNING: Compression support is experimental" >&2;} |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4445 | fi |
| 4446 | |
| 4447 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4448 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling compression support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4449 | $as_echo "Disabling compression support by default" >&6; } |
Theodore Ts'o | 1917875 | 2000-02-11 15:55:07 +0000 | [diff] [blame] | 4450 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4451 | fi |
| 4452 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4453 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4454 | # Check whether --enable-htree was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4455 | if test "${enable_htree+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4456 | enableval=$enable_htree; if test "$enableval" = "no" |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4457 | then |
| 4458 | HTREE_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4459 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4460 | $as_echo "Disabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4461 | else |
| 4462 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4463 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4464 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4466 | $as_echo "Enabling htree directory support" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4467 | fi |
| 4468 | |
| 4469 | else |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4470 | HTREE_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4471 | $as_echo "#define ENABLE_HTREE 1" >>confdefs.h |
Theodore Ts'o | 559ca6c | 2002-08-18 03:48:55 -0400 | [diff] [blame] | 4472 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4473 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling htree directory support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4474 | $as_echo "Enabling htree directory support by default" >&6; } |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4475 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4476 | fi |
Theodore Ts'o | 8fdc998 | 2002-06-25 23:26:34 -0400 | [diff] [blame] | 4477 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4478 | |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4479 | E2_PKG_CONFIG_STATIC=--static |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4480 | LDFLAG_DYNAMIC= |
| 4481 | PRIVATE_LIBS_CMT= |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4482 | # Check whether --enable-elf-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4483 | if test "${enable_elf_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4484 | enableval=$enable_elf_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4485 | then |
| 4486 | ELF_CMT=# |
| 4487 | MAKEFILE_ELF=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4488 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4489 | $as_echo "Disabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4490 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4491 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4492 | ELF_CMT= |
| 4493 | MAKEFILE_ELF=$srcdir/lib/Makefile.elf-lib |
Theodore Ts'o | f5955dd | 2000-10-25 02:38:39 +0000 | [diff] [blame] | 4494 | case "$host_os" in |
| 4495 | solaris2.*) |
| 4496 | MAKEFILE_ELF=$srcdir/lib/Makefile.solaris-lib |
| 4497 | ;; |
| 4498 | esac |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 4499 | BINARY_TYPE=elfbin |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4500 | LIB_EXT=.so |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4501 | PRIVATE_LIBS_CMT=# |
| 4502 | LDFLAG_DYNAMIC='-Wl,-rpath-link,$(top_builddir)/lib' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4503 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling ELF shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4504 | $as_echo "Enabling ELF shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4505 | fi |
| 4506 | |
| 4507 | else |
| 4508 | MAKEFILE_ELF=/dev/null |
| 4509 | ELF_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4510 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling ELF shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4511 | $as_echo "Disabling ELF shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4512 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4513 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4514 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4515 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4516 | |
| 4517 | # Check whether --enable-bsd-shlibs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4518 | if test "${enable_bsd_shlibs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4519 | enableval=$enable_bsd_shlibs; if test "$enableval" = "no" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4520 | then |
| 4521 | BSDLIB_CMT=# |
| 4522 | MAKEFILE_BSDLIB=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4523 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4524 | $as_echo "Disabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4525 | else |
Theodore Ts'o | a4ece35 | 2008-01-01 20:05:04 -0500 | [diff] [blame] | 4526 | E2_PKG_CONFIG_STATIC= |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4527 | BSDLIB_CMT= |
| 4528 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.bsd-lib |
Theodore Ts'o | a4d0961 | 1997-04-29 14:28:00 +0000 | [diff] [blame] | 4529 | LIB_EXT=.so |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4530 | case "$host_os" in |
Theodore Ts'o | aa75ecc | 2003-03-17 10:01:22 -0500 | [diff] [blame] | 4531 | darwin*) |
Theodore Ts'o | e1f0722 | 2003-03-14 02:25:36 -0500 | [diff] [blame] | 4532 | MAKEFILE_BSDLIB=$srcdir/lib/Makefile.darwin-lib |
| 4533 | LIB_EXT=.dylib |
| 4534 | ;; |
| 4535 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4536 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling BSD shared libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4537 | $as_echo "Enabling BSD shared libraries" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4538 | fi |
| 4539 | |
| 4540 | else |
| 4541 | MAKEFILE_BSDLIB=/dev/null |
| 4542 | BSDLIB_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling BSD shared libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4544 | $as_echo "Disabling BSD shared libraries by default" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4545 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4546 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4547 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 4548 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4549 | |
| 4550 | # Check whether --enable-profile was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4551 | if test "${enable_profile+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4552 | enableval=$enable_profile; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4553 | then |
| 4554 | PROFILE_CMT=# |
| 4555 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4556 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4557 | $as_echo "Disabling profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4558 | else |
| 4559 | PROFILE_CMT= |
| 4560 | MAKEFILE_PROFILE=$srcdir/lib/Makefile.profile |
| 4561 | PROFILED_LIB_EXT=_p.a |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4562 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building profiling libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4563 | $as_echo "Building profiling libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4564 | fi |
| 4565 | |
| 4566 | else |
| 4567 | PROFILE_CMT=# |
| 4568 | MAKEFILE_PROFILE=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4569 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling profiling libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4570 | $as_echo "Disabling profiling libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4571 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4572 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4573 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4574 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4575 | |
| 4576 | # Check whether --enable-checker was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4577 | if test "${enable_checker+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4578 | enableval=$enable_checker; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4579 | then |
| 4580 | CHECKER_CMT=# |
| 4581 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4583 | $as_echo "Disabling checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4584 | else |
| 4585 | CHECKER_CMT= |
| 4586 | MAKEFILE_CHECKER=$srcdir/lib/Makefile.checker |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4587 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building checker libraries" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4588 | $as_echo "Building checker libraries" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4589 | fi |
| 4590 | |
| 4591 | else |
| 4592 | CHECKER_CMT=# |
| 4593 | MAKEFILE_CHECKER=/dev/null |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4594 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling checker libraries by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4595 | $as_echo "Disabling checker libraries by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4596 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4597 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 4598 | |
| 4599 | |
| 4600 | |
| 4601 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 4602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4603 | |
Theodore Ts'o | 55da987 | 2008-09-02 23:12:38 -0400 | [diff] [blame] | 4604 | |
| 4605 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4606 | # Check whether --enable-jbd-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4607 | if test "${enable_jbd_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4608 | enableval=$enable_jbd_debug; if test "$enableval" = "no" |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4609 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4611 | $as_echo "Disabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4612 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4613 | |
| 4614 | $as_echo "#define CONFIG_JBD_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4615 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling journal debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4617 | $as_echo "Enabling journal debugging" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4618 | fi |
| 4619 | |
| 4620 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4621 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling journal debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4622 | $as_echo "Disabling journal debugging by default" >&6; } |
Theodore Ts'o | 80bfaa3 | 2000-08-18 15:08:37 +0000 | [diff] [blame] | 4623 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4624 | fi |
| 4625 | |
| 4626 | # Check whether --enable-blkid-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4627 | if test "${enable_blkid_debug+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4628 | enableval=$enable_blkid_debug; if test "$enableval" = "no" |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4629 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4630 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4631 | $as_echo "Disabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4632 | else |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4633 | |
| 4634 | $as_echo "#define CONFIG_BLKID_DEBUG 1" >>confdefs.h |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4635 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4636 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling blkid debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4637 | $as_echo "Enabling blkid debugging" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4638 | fi |
| 4639 | |
| 4640 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4641 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling blkid debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4642 | $as_echo "Disabling blkid debugging by default" >&6; } |
Theodore Ts'o | f0a22d0 | 2003-02-22 13:19:53 -0500 | [diff] [blame] | 4643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4644 | fi |
| 4645 | |
| 4646 | # Check whether --enable-testio-debug was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4647 | if test "${enable_testio_debug+set}" = set; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 4648 | enableval=$enable_testio_debug; |
| 4649 | if test "$enableval" = "no" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4650 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4651 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4652 | $as_echo "Disabling testio debugging" >&6; } |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4653 | TEST_IO_CMT="#" |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4654 | else |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4655 | TEST_IO_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4656 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4657 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4659 | $as_echo "Enabling testio debugging" >&6; } |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4660 | fi |
| 4661 | |
| 4662 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4663 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling testio debugging by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4664 | $as_echo "Enabling testio debugging by default" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4665 | $as_echo "#define CONFIG_TESTIO_DEBUG 1" >>confdefs.h |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4666 | |
| 4667 | TEST_IO_CMT= |
Theodore Ts'o | 2a29f13 | 2003-05-05 12:08:47 -0400 | [diff] [blame] | 4668 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 4669 | fi |
| 4670 | |
Theodore Ts'o | af77365 | 2008-09-01 11:27:27 -0400 | [diff] [blame] | 4671 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4672 | |
| 4673 | |
| 4674 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4675 | if test -n "$ac_tool_prefix"; then |
| 4676 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4677 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4678 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4679 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4680 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4681 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4682 | else |
| 4683 | case $PKG_CONFIG in |
| 4684 | [\\/]* | ?:[\\/]*) |
| 4685 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4686 | ;; |
| 4687 | *) |
| 4688 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4689 | for as_dir in $PATH |
| 4690 | do |
| 4691 | IFS=$as_save_IFS |
| 4692 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4693 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4694 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4695 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4696 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4697 | break 2 |
| 4698 | fi |
| 4699 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4700 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4701 | IFS=$as_save_IFS |
| 4702 | |
| 4703 | ;; |
| 4704 | esac |
| 4705 | fi |
| 4706 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4707 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4709 | $as_echo "$PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4710 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4711 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4712 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4713 | fi |
| 4714 | |
| 4715 | |
| 4716 | fi |
| 4717 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4718 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4719 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4720 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4722 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4723 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4724 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4725 | else |
| 4726 | case $ac_pt_PKG_CONFIG in |
| 4727 | [\\/]* | ?:[\\/]*) |
| 4728 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4729 | ;; |
| 4730 | *) |
| 4731 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4732 | for as_dir in $PATH |
| 4733 | do |
| 4734 | IFS=$as_save_IFS |
| 4735 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4736 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4737 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4738 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4739 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4740 | break 2 |
| 4741 | fi |
| 4742 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4743 | done |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4744 | IFS=$as_save_IFS |
| 4745 | |
| 4746 | ;; |
| 4747 | esac |
| 4748 | fi |
| 4749 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4750 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4751 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4752 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4753 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4754 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4755 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4756 | fi |
| 4757 | |
| 4758 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4759 | PKG_CONFIG="" |
| 4760 | else |
| 4761 | case $cross_compiling:$ac_tool_warned in |
| 4762 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4763 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4764 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4765 | ac_tool_warned=yes ;; |
| 4766 | esac |
| 4767 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4768 | fi |
| 4769 | else |
| 4770 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4771 | fi |
| 4772 | |
| 4773 | fi |
| 4774 | if test -n "$PKG_CONFIG"; then |
| 4775 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4776 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4777 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4778 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4779 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4780 | $as_echo "yes" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4781 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4782 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4783 | $as_echo "no" >&6; } |
| 4784 | PKG_CONFIG="" |
| 4785 | fi |
| 4786 | |
| 4787 | fi |
| 4788 | LIBUUID= |
| 4789 | DEPLIBUUID= |
| 4790 | STATIC_LIBUUID= |
| 4791 | DEPSTATIC_LIBUUID= |
| 4792 | PROFILED_LIBUUID= |
| 4793 | DEPPROFILED_LIBUUID= |
| 4794 | UUID_CMT= |
| 4795 | # Check whether --enable-libuuid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4796 | if test "${enable_libuuid+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4797 | enableval=$enable_libuuid; if test "$enableval" = "no" |
| 4798 | then |
| 4799 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4800 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4801 | fi |
| 4802 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4803 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uuid_generate in -luuid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4804 | $as_echo_n "checking for uuid_generate in -luuid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4805 | if test "${ac_cv_lib_uuid_uuid_generate+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4806 | $as_echo_n "(cached) " >&6 |
| 4807 | else |
| 4808 | ac_check_lib_save_LIBS=$LIBS |
| 4809 | LIBS="-luuid $LIBUUID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4810 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4811 | /* end confdefs.h. */ |
| 4812 | |
| 4813 | /* Override any GCC internal prototype to avoid an error. |
| 4814 | Use char because int might match the return type of a GCC |
| 4815 | builtin and then its argument prototype would still apply. */ |
| 4816 | #ifdef __cplusplus |
| 4817 | extern "C" |
| 4818 | #endif |
| 4819 | char uuid_generate (); |
| 4820 | int |
| 4821 | main () |
| 4822 | { |
| 4823 | return uuid_generate (); |
| 4824 | ; |
| 4825 | return 0; |
| 4826 | } |
| 4827 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4828 | if ac_fn_c_try_link "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4829 | ac_cv_lib_uuid_uuid_generate=yes |
| 4830 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4831 | ac_cv_lib_uuid_uuid_generate=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4832 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4833 | rm -f core conftest.err conftest.$ac_objext \ |
| 4834 | conftest$ac_exeext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4835 | LIBS=$ac_check_lib_save_LIBS |
| 4836 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4837 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_uuid_uuid_generate" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4838 | $as_echo "$ac_cv_lib_uuid_uuid_generate" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4839 | if test "x$ac_cv_lib_uuid_uuid_generate" = x""yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4840 | LIBUUID=`$PKG_CONFIG --libs uuid`; |
| 4841 | STATIC_LIBUUID=`$PKG_CONFIG --static --libs uuid` |
| 4842 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4843 | as_fn_error "external uuid library not found" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4844 | fi |
| 4845 | |
| 4846 | UUID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4847 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4848 | $as_echo "Disabling private uuid library" >&6; } |
| 4849 | else |
| 4850 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4851 | DEPLIBUUID=$LIBUUID |
| 4852 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4853 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4854 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4855 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4857 | $as_echo "Enabling private uuid library" >&6; } |
| 4858 | fi |
| 4859 | |
| 4860 | else |
| 4861 | LIBUUID='$(LIB)/libuuid'$LIB_EXT |
| 4862 | DEPLIBUUID=$LIBUUID |
| 4863 | STATIC_LIBUUID='$(LIB)/libuuid'$STATIC_LIB_EXT |
| 4864 | DEPSTATIC_LIBUUID=$STATIC_LIBUUID |
| 4865 | PROFILED_LIBUUID='$(LIB)/libuuid'$PROFILED_LIB_EXT |
| 4866 | DEPPROFILED_LIBUUID=$PROFILED_LIBUUID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4867 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private uuid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4868 | $as_echo "Enabling private uuid library by default" >&6; } |
| 4869 | |
| 4870 | fi |
| 4871 | |
| 4872 | |
| 4873 | |
| 4874 | |
| 4875 | |
| 4876 | |
| 4877 | |
| 4878 | |
| 4879 | |
| 4880 | |
| 4881 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 4882 | if test -n "$ac_tool_prefix"; then |
| 4883 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 4884 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4885 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4886 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4887 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4888 | $as_echo_n "(cached) " >&6 |
| 4889 | else |
| 4890 | case $PKG_CONFIG in |
| 4891 | [\\/]* | ?:[\\/]*) |
| 4892 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 4893 | ;; |
| 4894 | *) |
| 4895 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4896 | for as_dir in $PATH |
| 4897 | do |
| 4898 | IFS=$as_save_IFS |
| 4899 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4900 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4901 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4902 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4903 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4904 | break 2 |
| 4905 | fi |
| 4906 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4907 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4908 | IFS=$as_save_IFS |
| 4909 | |
| 4910 | ;; |
| 4911 | esac |
| 4912 | fi |
| 4913 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 4914 | if test -n "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4915 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4916 | $as_echo "$PKG_CONFIG" >&6; } |
| 4917 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4918 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4919 | $as_echo "no" >&6; } |
| 4920 | fi |
| 4921 | |
| 4922 | |
| 4923 | fi |
| 4924 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 4925 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 4926 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 4927 | set dummy pkg-config; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4928 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4929 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4930 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4931 | $as_echo_n "(cached) " >&6 |
| 4932 | else |
| 4933 | case $ac_pt_PKG_CONFIG in |
| 4934 | [\\/]* | ?:[\\/]*) |
| 4935 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 4936 | ;; |
| 4937 | *) |
| 4938 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 4939 | for as_dir in $PATH |
| 4940 | do |
| 4941 | IFS=$as_save_IFS |
| 4942 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4943 | for ac_exec_ext in '' $ac_executable_extensions; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4944 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 4945 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4946 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4947 | break 2 |
| 4948 | fi |
| 4949 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4950 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4951 | IFS=$as_save_IFS |
| 4952 | |
| 4953 | ;; |
| 4954 | esac |
| 4955 | fi |
| 4956 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 4957 | if test -n "$ac_pt_PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4958 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4959 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 4960 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4961 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4962 | $as_echo "no" >&6; } |
| 4963 | fi |
| 4964 | |
| 4965 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 4966 | PKG_CONFIG="" |
| 4967 | else |
| 4968 | case $cross_compiling:$ac_tool_warned in |
| 4969 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4970 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4971 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 4972 | ac_tool_warned=yes ;; |
| 4973 | esac |
| 4974 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 4975 | fi |
| 4976 | else |
| 4977 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 4978 | fi |
| 4979 | |
| 4980 | fi |
| 4981 | if test -n "$PKG_CONFIG"; then |
| 4982 | _pkg_min_version=0.9.0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4984 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 4985 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4986 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4987 | $as_echo "yes" >&6; } |
| 4988 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 4989 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 4990 | $as_echo "no" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 4991 | PKG_CONFIG="" |
| 4992 | fi |
| 4993 | |
| 4994 | fi |
| 4995 | LIBBLKID= |
| 4996 | DEPLIBBLKID= |
| 4997 | STATIC_LIBBLKID= |
| 4998 | DEPSTATIC_LIBBLKID= |
| 4999 | PROFILED_LIBBLKID= |
| 5000 | DEPPROFILED_LIBBLKID= |
| 5001 | BLKID_CMT= |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5002 | |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5003 | # Check whether --enable-libblkid was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5004 | if test "${enable_libblkid+set}" = set; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5005 | enableval=$enable_libblkid; if test "$enableval" = "no" |
| 5006 | then |
| 5007 | if test -z "$PKG_CONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5008 | as_fn_error "pkg-config not installed; please install it." "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5009 | fi |
| 5010 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for blkid_get_cache in -lblkid" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5012 | $as_echo_n "checking for blkid_get_cache in -lblkid... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5013 | if test "${ac_cv_lib_blkid_blkid_get_cache+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5014 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5015 | else |
| 5016 | ac_check_lib_save_LIBS=$LIBS |
| 5017 | LIBS="-lblkid $LIBBLKID $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5018 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5019 | /* end confdefs.h. */ |
| 5020 | |
| 5021 | /* Override any GCC internal prototype to avoid an error. |
| 5022 | Use char because int might match the return type of a GCC |
| 5023 | builtin and then its argument prototype would still apply. */ |
| 5024 | #ifdef __cplusplus |
| 5025 | extern "C" |
| 5026 | #endif |
| 5027 | char blkid_get_cache (); |
| 5028 | int |
| 5029 | main () |
| 5030 | { |
| 5031 | return blkid_get_cache (); |
| 5032 | ; |
| 5033 | return 0; |
| 5034 | } |
| 5035 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5036 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5037 | ac_cv_lib_blkid_blkid_get_cache=yes |
| 5038 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5039 | ac_cv_lib_blkid_blkid_get_cache=no |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5040 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5041 | rm -f core conftest.err conftest.$ac_objext \ |
| 5042 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5043 | LIBS=$ac_check_lib_save_LIBS |
| 5044 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5045 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_blkid_blkid_get_cache" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5046 | $as_echo "$ac_cv_lib_blkid_blkid_get_cache" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5047 | if test "x$ac_cv_lib_blkid_blkid_get_cache" = x""yes; then : |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5048 | LIBBLKID=`$PKG_CONFIG --libs blkid`; |
| 5049 | STATIC_LIBBLKID=`$PKG_CONFIG --static --libs blkid` |
| 5050 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5051 | as_fn_error "external blkid library not found" "$LINENO" 5 |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5052 | fi |
| 5053 | |
| 5054 | BLKID_CMT=# |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5055 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5056 | $as_echo "Disabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5057 | else |
| 5058 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5059 | DEPLIBBLKID=$LIBBLKID |
| 5060 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5061 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5062 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5063 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5064 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5065 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5066 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5067 | $as_echo "Enabling private blkid library" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5068 | fi |
| 5069 | |
| 5070 | else |
| 5071 | LIBBLKID='$(LIB)/libblkid'$LIB_EXT |
| 5072 | DEPLIBBLKID=$LIBBLKID |
| 5073 | STATIC_LIBBLKID='$(LIB)/libblkid'$STATIC_LIB_EXT |
| 5074 | DEPSTATIC_LIBBLKID=$STATIC_LIBBLKID |
| 5075 | PROFILED_LIBBLKID='$(LIB)/libblkid'$PROFILED_LIB_EXT |
| 5076 | DEPPROFILED_LIBBLKID=$PROFILED_LIBBLKID |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5077 | $as_echo "#define CONFIG_BUILD_FINDFS 1" >>confdefs.h |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5078 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5079 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling private blkid library by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5080 | $as_echo "Enabling private blkid library by default" >&6; } |
Theodore Ts'o | 14b596d | 2009-04-22 09:18:30 -0400 | [diff] [blame] | 5081 | |
| 5082 | fi |
| 5083 | |
| 5084 | |
| 5085 | |
| 5086 | |
| 5087 | |
| 5088 | |
| 5089 | |
| 5090 | |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5091 | |
| 5092 | |
| 5093 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
| 5094 | if test -n "$ac_tool_prefix"; then |
| 5095 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
| 5096 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
| 5097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5098 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5099 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : |
| 5100 | $as_echo_n "(cached) " >&6 |
| 5101 | else |
| 5102 | case $PKG_CONFIG in |
| 5103 | [\\/]* | ?:[\\/]*) |
| 5104 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
| 5105 | ;; |
| 5106 | *) |
| 5107 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5108 | for as_dir in $PATH |
| 5109 | do |
| 5110 | IFS=$as_save_IFS |
| 5111 | test -z "$as_dir" && as_dir=. |
| 5112 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5113 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5114 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5115 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5116 | break 2 |
| 5117 | fi |
| 5118 | done |
| 5119 | done |
| 5120 | IFS=$as_save_IFS |
| 5121 | |
| 5122 | ;; |
| 5123 | esac |
| 5124 | fi |
| 5125 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
| 5126 | if test -n "$PKG_CONFIG"; then |
| 5127 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 |
| 5128 | $as_echo "$PKG_CONFIG" >&6; } |
| 5129 | else |
| 5130 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5131 | $as_echo "no" >&6; } |
| 5132 | fi |
| 5133 | |
| 5134 | |
| 5135 | fi |
| 5136 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
| 5137 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
| 5138 | # Extract the first word of "pkg-config", so it can be a program name with args. |
| 5139 | set dummy pkg-config; ac_word=$2 |
| 5140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
| 5141 | $as_echo_n "checking for $ac_word... " >&6; } |
| 5142 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then : |
| 5143 | $as_echo_n "(cached) " >&6 |
| 5144 | else |
| 5145 | case $ac_pt_PKG_CONFIG in |
| 5146 | [\\/]* | ?:[\\/]*) |
| 5147 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
| 5148 | ;; |
| 5149 | *) |
| 5150 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5151 | for as_dir in $PATH |
| 5152 | do |
| 5153 | IFS=$as_save_IFS |
| 5154 | test -z "$as_dir" && as_dir=. |
| 5155 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5156 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 5157 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
| 5158 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
| 5159 | break 2 |
| 5160 | fi |
| 5161 | done |
| 5162 | done |
| 5163 | IFS=$as_save_IFS |
| 5164 | |
| 5165 | ;; |
| 5166 | esac |
| 5167 | fi |
| 5168 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
| 5169 | if test -n "$ac_pt_PKG_CONFIG"; then |
| 5170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 |
| 5171 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } |
| 5172 | else |
| 5173 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5174 | $as_echo "no" >&6; } |
| 5175 | fi |
| 5176 | |
| 5177 | if test "x$ac_pt_PKG_CONFIG" = x; then |
| 5178 | PKG_CONFIG="" |
| 5179 | else |
| 5180 | case $cross_compiling:$ac_tool_warned in |
| 5181 | yes:) |
| 5182 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
| 5183 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
| 5184 | ac_tool_warned=yes ;; |
| 5185 | esac |
| 5186 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
| 5187 | fi |
| 5188 | else |
| 5189 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
| 5190 | fi |
| 5191 | |
| 5192 | fi |
| 5193 | if test -n "$PKG_CONFIG"; then |
| 5194 | _pkg_min_version=0.9.0 |
| 5195 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 |
| 5196 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } |
| 5197 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
| 5198 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
| 5199 | $as_echo "yes" >&6; } |
| 5200 | else |
| 5201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
| 5202 | $as_echo "no" >&6; } |
| 5203 | PKG_CONFIG="" |
| 5204 | fi |
| 5205 | |
| 5206 | fi |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame^] | 5207 | |
| 5208 | # Check whether --enable-quota was given. |
| 5209 | if test "${enable_quota+set}" = set; then : |
| 5210 | enableval=$enable_quota; if test "$enableval" = "no" |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5211 | then |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame^] | 5212 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support" >&5 |
| 5213 | $as_echo "Disabling quota support" >&6; } |
| 5214 | else |
| 5215 | $as_echo "#define CONFIG_QUOTA 1" >>confdefs.h |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5216 | |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame^] | 5217 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling quota support" >&5 |
| 5218 | $as_echo "Enabling quota support" >&6; } |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5219 | fi |
| 5220 | |
| 5221 | else |
Theodore Ts'o | 7becb20 | 2011-11-14 10:40:43 -0500 | [diff] [blame^] | 5222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling quota support by default" >&5 |
| 5223 | $as_echo "Disabling quota support by default" >&6; } |
| 5224 | |
| 5225 | fi |
| 5226 | |
| 5227 | LIBQUOTA='$(LIB)/libquota'$LIB_EXT |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5228 | DEPLIBQUOTA=$LIBQUOTA |
| 5229 | STATIC_LIBQUOTA='$(LIB)/libquota'$STATIC_LIB_EXT |
| 5230 | DEPSTATIC_LIBQUOTA=$STATIC_LIBQUOTA |
| 5231 | PROFILED_LIBQUOTA='$(LIB)/libquota'$PROFILED_LIB_EXT |
| 5232 | DEPPROFILED_LIBQUOTA=$PROFILED_LIBQUOTA |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 5233 | |
| 5234 | |
| 5235 | |
| 5236 | |
| 5237 | |
| 5238 | |
| 5239 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5240 | # Check whether --enable-debugfs was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5241 | if test "${enable_debugfs+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5242 | enableval=$enable_debugfs; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5243 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5244 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5245 | $as_echo "Disabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5246 | DEBUGFS_CMT="#" |
| 5247 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5248 | DEBUGFS_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5249 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5250 | $as_echo "Enabling debugfs support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5251 | fi |
| 5252 | |
| 5253 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5254 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling debugfs support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5255 | $as_echo "Enabling debugfs support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5256 | DEBUGFS_CMT= |
| 5257 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5258 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5259 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5260 | |
| 5261 | # Check whether --enable-imager was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5262 | if test "${enable_imager+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5263 | enableval=$enable_imager; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5264 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5265 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5266 | $as_echo "Disabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5267 | IMAGER_CMT="#" |
| 5268 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5269 | IMAGER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5270 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5271 | $as_echo "Enabling e2image support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5272 | fi |
| 5273 | |
| 5274 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5275 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2image support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5276 | $as_echo "Enabling e2image support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5277 | IMAGER_CMT= |
| 5278 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5279 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5280 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5281 | |
| 5282 | # Check whether --enable-resizer was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5283 | if test "${enable_resizer+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5284 | enableval=$enable_resizer; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5285 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5286 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5287 | $as_echo "Disabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5288 | RESIZER_CMT="#" |
| 5289 | else |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5290 | RESIZER_CMT= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5291 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5292 | $as_echo "Enabling e2resize support" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5293 | fi |
| 5294 | |
| 5295 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5296 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e2resize support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5297 | $as_echo "Enabling e2resize support by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5298 | RESIZER_CMT= |
| 5299 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5300 | fi |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5301 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5302 | |
Theodore Ts'o | 8d9c50c | 2010-12-24 15:19:44 -0500 | [diff] [blame] | 5303 | # Check whether --enable-defrag was given. |
| 5304 | if test "${enable_defrag+set}" = set; then : |
| 5305 | enableval=$enable_defrag; if test "$enableval" = "no" |
| 5306 | then |
| 5307 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling e4defrag support" >&5 |
| 5308 | $as_echo "Disabling e4defrag support" >&6; } |
| 5309 | DEFRAG_CMT="#" |
| 5310 | else |
| 5311 | DEFRAG_CMT= |
| 5312 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support" >&5 |
| 5313 | $as_echo "Enabling e4defrag support" >&6; } |
| 5314 | fi |
| 5315 | |
| 5316 | else |
| 5317 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling e4defrag support by default" >&5 |
| 5318 | $as_echo "Enabling e4defrag support by default" >&6; } |
| 5319 | DEFRAG_CMT= |
| 5320 | |
| 5321 | fi |
| 5322 | |
| 5323 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5324 | # Check whether --enable-fsck was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5325 | if test "${enable_fsck+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5326 | enableval=$enable_fsck; if test "$enableval" = "no" |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5327 | then |
| 5328 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5329 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5330 | $as_echo "Not building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5331 | else |
| 5332 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5333 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5334 | $as_echo "Building fsck wrapper" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5335 | fi |
| 5336 | |
| 5337 | else |
| 5338 | case "$host_os" in |
Theodore Ts'o | e363240 | 2004-05-04 19:39:54 -0400 | [diff] [blame] | 5339 | gnu*) |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5340 | FSCK_PROG='' FSCK_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5341 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5342 | $as_echo "Not building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5343 | ;; |
| 5344 | *) |
| 5345 | FSCK_PROG=fsck FSCK_MAN=fsck.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building fsck wrapper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5347 | $as_echo "Building fsck wrapper by default" >&6; } |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5348 | esac |
| 5349 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5350 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5351 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5352 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5353 | |
| 5354 | # Check whether --enable-e2initrd-helper was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5355 | if test "${enable_e2initrd_helper+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5356 | enableval=$enable_e2initrd_helper; if test "$enableval" = "no" |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5357 | then |
| 5358 | E2INITRD_PROG='' E2INITRD_MAN='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5360 | $as_echo "Not building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5361 | else |
| 5362 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5363 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5364 | $as_echo "Building e2initrd helper" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5365 | fi |
| 5366 | |
| 5367 | else |
| 5368 | E2INITRD_PROG=e2initrd_helper E2INITRD_MAN=e2initrd_helper.8 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5369 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building e2initrd helper by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5370 | $as_echo "Building e2initrd helper by default" >&6; } |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5371 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5372 | fi |
Theodore Ts'o | 5d40773 | 2004-09-18 14:53:14 -0400 | [diff] [blame] | 5373 | |
| 5374 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5375 | |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5376 | # Check whether --enable-tls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5377 | if test "${enable_tls+set}" = set; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5378 | enableval=$enable_tls; if test "$enableval" = "no" |
| 5379 | then |
| 5380 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5381 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Disabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5382 | $as_echo "Disabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5383 | else |
| 5384 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Enabling thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5386 | $as_echo "Enabling thread local support" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5387 | fi |
| 5388 | |
| 5389 | else |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5390 | if test -n "$WITH_DIET_LIBC" |
| 5391 | then |
| 5392 | try_tls="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5393 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Diet libc does not support thread local support" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5394 | $as_echo "Diet libc does not support thread local support" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5395 | else |
| 5396 | try_tls="yes" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5397 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Try using thread local support by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5398 | $as_echo "Try using thread local support by default" >&6; } |
Theodore Ts'o | eafba6c | 2008-07-10 10:21:42 -0400 | [diff] [blame] | 5399 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5400 | |
| 5401 | fi |
| 5402 | |
| 5403 | if test "$try_tls" = "yes" |
| 5404 | then |
| 5405 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5406 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thread local storage (TLS) class" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5407 | $as_echo_n "checking for thread local storage (TLS) class... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5408 | if test "${ac_cv_tls+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5409 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5410 | else |
| 5411 | |
| 5412 | ax_tls_keywords="__thread __declspec(thread) none" |
| 5413 | for ax_tls_keyword in $ax_tls_keywords; do |
| 5414 | case $ax_tls_keyword in |
| 5415 | none) ac_cv_tls=none ; break ;; |
| 5416 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5417 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5418 | /* end confdefs.h. */ |
| 5419 | #include <stdlib.h> |
| 5420 | static void |
| 5421 | foo(void) { |
| 5422 | static $ax_tls_keyword int bar; |
| 5423 | exit(1); |
| 5424 | } |
| 5425 | int |
| 5426 | main () |
| 5427 | { |
| 5428 | |
| 5429 | ; |
| 5430 | return 0; |
| 5431 | } |
| 5432 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5433 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5434 | ac_cv_tls=$ax_tls_keyword ; break |
| 5435 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5436 | ac_cv_tls=none |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5437 | |
| 5438 | fi |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5439 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 5440 | esac |
| 5441 | done |
| 5442 | |
| 5443 | fi |
| 5444 | |
| 5445 | |
| 5446 | if test "$ac_cv_tls" != "none"; then |
| 5447 | |
| 5448 | cat >>confdefs.h <<_ACEOF |
| 5449 | #define TLS $ac_cv_tls |
| 5450 | _ACEOF |
| 5451 | |
| 5452 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5453 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_tls" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5454 | $as_echo "$ac_cv_tls" >&6; } |
Theodore Ts'o | 3249394 | 2007-12-31 10:45:01 -0500 | [diff] [blame] | 5455 | |
| 5456 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5457 | |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5458 | # Check whether --enable-uuidd was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5459 | if test "${enable_uuidd+set}" = set; then : |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5460 | enableval=$enable_uuidd; if test "$enableval" = "no" |
| 5461 | then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5463 | $as_echo "Not building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5464 | UUIDD_CMT="#" |
| 5465 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5466 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5467 | |
| 5468 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5469 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5470 | $as_echo "Building uuidd" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5471 | fi |
| 5472 | |
| 5473 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5474 | $as_echo "#define USE_UUIDD 1" >>confdefs.h |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5475 | |
| 5476 | UUIDD_CMT="" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Building uuidd by default" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5478 | $as_echo "Building uuidd by default" >&6; } |
Theodore Ts'o | 5610f99 | 2007-12-31 11:16:56 -0500 | [diff] [blame] | 5479 | |
| 5480 | fi |
| 5481 | |
| 5482 | |
Theodore Ts'o | cdf186e | 2001-06-13 22:16:47 +0000 | [diff] [blame] | 5483 | MAKEFILE_LIBRARY=$srcdir/lib/Makefile.library |
| 5484 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5485 | GETTEXT_PACKAGE=e2fsprogs |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5486 | PACKAGE=e2fsprogs |
| 5487 | VERSION="$E2FSPROGS_VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5488 | VERSION=0.14.1 |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5489 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5490 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5491 | #define PACKAGE "$PACKAGE" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5492 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5493 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 5494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5495 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5496 | #define VERSION "$VERSION" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5497 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5498 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5499 | |
| 5500 | |
| 5501 | |
| 5502 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5503 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5504 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 5505 | set x ${MAKE-make} |
| 5506 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5507 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5508 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5509 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5510 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5511 | SHELL = /bin/sh |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5512 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5513 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5514 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5515 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5516 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 5517 | *@@@%%%=?*=@@@%%%*) |
| 5518 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 5519 | *) |
| 5520 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 5521 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5522 | rm -f conftest.make |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5523 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5524 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5525 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5526 | $as_echo "yes" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5527 | SET_MAKE= |
| 5528 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5529 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5530 | $as_echo "no" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5531 | SET_MAKE="MAKE=${MAKE-make}" |
| 5532 | fi |
| 5533 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5534 | # Find a good install program. We prefer a C program (faster), |
| 5535 | # so one script is as good as another. But avoid the broken or |
| 5536 | # incompatible versions: |
| 5537 | # SysV /etc/install, /usr/sbin/install |
| 5538 | # SunOS /usr/etc/install |
| 5539 | # IRIX /sbin/install |
| 5540 | # AIX /bin/install |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5541 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5542 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
| 5543 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
| 5544 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5545 | # OS/2's system install, which has a completely different semantic |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5546 | # ./install, which can be erroneously created by make from ./install.sh. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5547 | # Reject install programs that cannot install multiple files. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5548 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5549 | $as_echo_n "checking for a BSD-compatible install... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5550 | if test -z "$INSTALL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5551 | if test "${ac_cv_path_install+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5552 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5553 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5555 | for as_dir in $PATH |
| 5556 | do |
| 5557 | IFS=$as_save_IFS |
| 5558 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5559 | # Account for people who put trailing slashes in PATH elements. |
| 5560 | case $as_dir/ in #(( |
| 5561 | ./ | .// | /[cC]/* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5562 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5563 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5564 | /usr/ucb/* ) ;; |
| 5565 | *) |
| 5566 | # OSF1 and SCO ODT 3.0 have their own names for install. |
| 5567 | # Don't use installbsd from OSF since it installs stuff as root |
| 5568 | # by default. |
| 5569 | for ac_prog in ginstall scoinst install; do |
| 5570 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5571 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5572 | if test $ac_prog = install && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5573 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5574 | # AIX install. It has an incompatible calling convention. |
| 5575 | : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5576 | elif test $ac_prog = install && |
| 5577 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
| 5578 | # program-specific install script used by HP pwplus--don't use. |
| 5579 | : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5580 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5581 | rm -rf conftest.one conftest.two conftest.dir |
| 5582 | echo one > conftest.one |
| 5583 | echo two > conftest.two |
| 5584 | mkdir conftest.dir |
| 5585 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && |
| 5586 | test -s conftest.one && test -s conftest.two && |
| 5587 | test -s conftest.dir/conftest.one && |
| 5588 | test -s conftest.dir/conftest.two |
| 5589 | then |
| 5590 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
| 5591 | break 3 |
| 5592 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5593 | fi |
| 5594 | fi |
| 5595 | done |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5596 | done |
| 5597 | ;; |
| 5598 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5599 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5600 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5601 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5602 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5603 | rm -rf conftest.one conftest.two conftest.dir |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5604 | |
| 5605 | fi |
| 5606 | if test "${ac_cv_path_install+set}" = set; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5607 | INSTALL=$ac_cv_path_install |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5608 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5609 | # As a last resort, use the slow shell script. Don't cache a |
| 5610 | # value for INSTALL within a source directory, because that will |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5611 | # break other packages using the cache if that directory is |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5612 | # removed, or if the value is a relative name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5613 | INSTALL=$ac_install_sh |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5614 | fi |
| 5615 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5616 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5617 | $as_echo "$INSTALL" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5618 | |
| 5619 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
| 5620 | # It thinks the first close brace ends the variable substitution. |
| 5621 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
| 5622 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5623 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5624 | |
| 5625 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
| 5626 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5627 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5628 | MKINSTALLDIRS= |
| 5629 | if test -n "$ac_aux_dir"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5630 | case "$ac_aux_dir" in |
| 5631 | /*) MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs" ;; |
| 5632 | *) MKINSTALLDIRS="\$(top_builddir)/$ac_aux_dir/mkinstalldirs" ;; |
| 5633 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5634 | fi |
| 5635 | if test -z "$MKINSTALLDIRS"; then |
| 5636 | MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs" |
| 5637 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 5638 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5639 | |
| 5640 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5641 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5642 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5643 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5644 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5645 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5646 | else |
| 5647 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5648 | fi |
| 5649 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5650 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5651 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5652 | |
| 5653 | |
| 5654 | |
| 5655 | |
| 5656 | |
| 5657 | |
| 5658 | # Prepare PATH_SEPARATOR. |
| 5659 | # The user is always right. |
| 5660 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5661 | echo "#! /bin/sh" >conf$$.sh |
| 5662 | echo "exit 0" >>conf$$.sh |
| 5663 | chmod +x conf$$.sh |
| 5664 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5665 | PATH_SEPARATOR=';' |
| 5666 | else |
| 5667 | PATH_SEPARATOR=: |
| 5668 | fi |
| 5669 | rm -f conf$$.sh |
| 5670 | fi |
| 5671 | |
| 5672 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5673 | # as systems may use methods other than mode bits to determine executability. |
| 5674 | cat >conf$$.file <<_ASEOF |
| 5675 | #! /bin/sh |
| 5676 | exit 0 |
| 5677 | _ASEOF |
| 5678 | chmod +x conf$$.file |
| 5679 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5680 | ac_executable_p="test -x" |
| 5681 | else |
| 5682 | ac_executable_p="test -f" |
| 5683 | fi |
| 5684 | rm -f conf$$.file |
| 5685 | |
| 5686 | # Extract the first word of "msgfmt", so it can be a program name with args. |
| 5687 | set dummy msgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5689 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5690 | if test "${ac_cv_path_MSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5691 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5692 | else |
| 5693 | case "$MSGFMT" in |
| 5694 | [\\/]* | ?:[\\/]*) |
| 5695 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
| 5696 | ;; |
| 5697 | *) |
| 5698 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5699 | for ac_dir in $PATH; do |
| 5700 | IFS="$ac_save_IFS" |
| 5701 | test -z "$ac_dir" && ac_dir=. |
| 5702 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5703 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5704 | if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1 && |
| 5705 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5706 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
| 5707 | break 2 |
| 5708 | fi |
| 5709 | fi |
| 5710 | done |
| 5711 | done |
| 5712 | IFS="$ac_save_IFS" |
| 5713 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
| 5714 | ;; |
| 5715 | esac |
| 5716 | fi |
| 5717 | MSGFMT="$ac_cv_path_MSGFMT" |
| 5718 | if test "$MSGFMT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5719 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5720 | $as_echo "$MSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5721 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5722 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5723 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5724 | fi |
| 5725 | |
| 5726 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
| 5727 | set dummy gmsgfmt; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5729 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5730 | if test "${ac_cv_path_GMSGFMT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5731 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5732 | else |
| 5733 | case $GMSGFMT in |
| 5734 | [\\/]* | ?:[\\/]*) |
| 5735 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
| 5736 | ;; |
| 5737 | *) |
| 5738 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5739 | for as_dir in $PATH |
| 5740 | do |
| 5741 | IFS=$as_save_IFS |
| 5742 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5743 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5744 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5745 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5746 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5747 | break 2 |
| 5748 | fi |
| 5749 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5750 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5751 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5752 | |
| 5753 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
| 5754 | ;; |
| 5755 | esac |
| 5756 | fi |
| 5757 | GMSGFMT=$ac_cv_path_GMSGFMT |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5758 | if test -n "$GMSGFMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5759 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5760 | $as_echo "$GMSGFMT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5761 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5762 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5763 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5764 | fi |
| 5765 | |
| 5766 | |
| 5767 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5768 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5769 | # Prepare PATH_SEPARATOR. |
| 5770 | # The user is always right. |
| 5771 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5772 | echo "#! /bin/sh" >conf$$.sh |
| 5773 | echo "exit 0" >>conf$$.sh |
| 5774 | chmod +x conf$$.sh |
| 5775 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5776 | PATH_SEPARATOR=';' |
| 5777 | else |
| 5778 | PATH_SEPARATOR=: |
| 5779 | fi |
| 5780 | rm -f conf$$.sh |
| 5781 | fi |
| 5782 | |
| 5783 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5784 | # as systems may use methods other than mode bits to determine executability. |
| 5785 | cat >conf$$.file <<_ASEOF |
| 5786 | #! /bin/sh |
| 5787 | exit 0 |
| 5788 | _ASEOF |
| 5789 | chmod +x conf$$.file |
| 5790 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5791 | ac_executable_p="test -x" |
| 5792 | else |
| 5793 | ac_executable_p="test -f" |
| 5794 | fi |
| 5795 | rm -f conf$$.file |
| 5796 | |
| 5797 | # Extract the first word of "xgettext", so it can be a program name with args. |
| 5798 | set dummy xgettext; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5799 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5800 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5801 | if test "${ac_cv_path_XGETTEXT+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5802 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5803 | else |
| 5804 | case "$XGETTEXT" in |
| 5805 | [\\/]* | ?:[\\/]*) |
| 5806 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
| 5807 | ;; |
| 5808 | *) |
| 5809 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5810 | for ac_dir in $PATH; do |
| 5811 | IFS="$ac_save_IFS" |
| 5812 | test -z "$ac_dir" && ac_dir=. |
| 5813 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5814 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5815 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5816 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5817 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
| 5818 | break 2 |
| 5819 | fi |
| 5820 | fi |
| 5821 | done |
| 5822 | done |
| 5823 | IFS="$ac_save_IFS" |
| 5824 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
| 5825 | ;; |
| 5826 | esac |
| 5827 | fi |
| 5828 | XGETTEXT="$ac_cv_path_XGETTEXT" |
| 5829 | if test "$XGETTEXT" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5830 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5831 | $as_echo "$XGETTEXT" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5832 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5833 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5834 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5835 | fi |
| 5836 | |
| 5837 | rm -f messages.po |
| 5838 | |
| 5839 | |
| 5840 | # Prepare PATH_SEPARATOR. |
| 5841 | # The user is always right. |
| 5842 | if test "${PATH_SEPARATOR+set}" != set; then |
| 5843 | echo "#! /bin/sh" >conf$$.sh |
| 5844 | echo "exit 0" >>conf$$.sh |
| 5845 | chmod +x conf$$.sh |
| 5846 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 5847 | PATH_SEPARATOR=';' |
| 5848 | else |
| 5849 | PATH_SEPARATOR=: |
| 5850 | fi |
| 5851 | rm -f conf$$.sh |
| 5852 | fi |
| 5853 | |
| 5854 | # Find out how to test for executable files. Don't use a zero-byte file, |
| 5855 | # as systems may use methods other than mode bits to determine executability. |
| 5856 | cat >conf$$.file <<_ASEOF |
| 5857 | #! /bin/sh |
| 5858 | exit 0 |
| 5859 | _ASEOF |
| 5860 | chmod +x conf$$.file |
| 5861 | if test -x conf$$.file >/dev/null 2>&1; then |
| 5862 | ac_executable_p="test -x" |
| 5863 | else |
| 5864 | ac_executable_p="test -f" |
| 5865 | fi |
| 5866 | rm -f conf$$.file |
| 5867 | |
| 5868 | # Extract the first word of "msgmerge", so it can be a program name with args. |
| 5869 | set dummy msgmerge; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5870 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5871 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5872 | if test "${ac_cv_path_MSGMERGE+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5873 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5874 | else |
| 5875 | case "$MSGMERGE" in |
| 5876 | [\\/]* | ?:[\\/]*) |
| 5877 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
| 5878 | ;; |
| 5879 | *) |
| 5880 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
| 5881 | for ac_dir in $PATH; do |
| 5882 | IFS="$ac_save_IFS" |
| 5883 | test -z "$ac_dir" && ac_dir=. |
| 5884 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 5885 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
| 5886 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >/dev/null 2>&1; then |
| 5887 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
| 5888 | break 2 |
| 5889 | fi |
| 5890 | fi |
| 5891 | done |
| 5892 | done |
| 5893 | IFS="$ac_save_IFS" |
| 5894 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
| 5895 | ;; |
| 5896 | esac |
| 5897 | fi |
| 5898 | MSGMERGE="$ac_cv_path_MSGMERGE" |
| 5899 | if test "$MSGMERGE" != ":"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5900 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5901 | $as_echo "$MSGMERGE" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5902 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5903 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5904 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5905 | fi |
| 5906 | |
| 5907 | |
| 5908 | if test "$GMSGFMT" != ":"; then |
| 5909 | if $GMSGFMT --statistics /dev/null >/dev/null 2>&1 && |
| 5910 | (if $GMSGFMT --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5911 | : ; |
| 5912 | else |
| 5913 | GMSGFMT=`echo "$GMSGFMT" | sed -e 's,^.*/,,'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5914 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found $GMSGFMT program is not GNU msgfmt; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5915 | $as_echo "found $GMSGFMT program is not GNU msgfmt; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5916 | GMSGFMT=":" |
| 5917 | fi |
| 5918 | fi |
| 5919 | |
| 5920 | if test "$XGETTEXT" != ":"; then |
| 5921 | if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >/dev/null 2>&1 && |
| 5922 | (if $XGETTEXT --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
| 5923 | : ; |
| 5924 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5925 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: found xgettext program is not GNU xgettext; ignore it" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5926 | $as_echo "found xgettext program is not GNU xgettext; ignore it" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5927 | XGETTEXT=":" |
| 5928 | fi |
| 5929 | rm -f messages.po |
| 5930 | fi |
| 5931 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5932 | ac_config_commands="$ac_config_commands default-1" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5933 | |
| 5934 | |
| 5935 | if test -n "$ac_tool_prefix"; then |
| 5936 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
| 5937 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5938 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5939 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5940 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5941 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5942 | else |
| 5943 | if test -n "$RANLIB"; then |
| 5944 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 5945 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5947 | for as_dir in $PATH |
| 5948 | do |
| 5949 | IFS=$as_save_IFS |
| 5950 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5951 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5953 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5954 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5955 | break 2 |
| 5956 | fi |
| 5957 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5958 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5959 | IFS=$as_save_IFS |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 5960 | |
| 5961 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5962 | fi |
| 5963 | RANLIB=$ac_cv_prog_RANLIB |
| 5964 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5965 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5966 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5967 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5968 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5969 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5970 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 5971 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5972 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5973 | fi |
| 5974 | if test -z "$ac_cv_prog_RANLIB"; then |
| 5975 | ac_ct_RANLIB=$RANLIB |
| 5976 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 5977 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5978 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5979 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5980 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 5981 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5982 | else |
| 5983 | if test -n "$ac_ct_RANLIB"; then |
| 5984 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
| 5985 | else |
| 5986 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 5987 | for as_dir in $PATH |
| 5988 | do |
| 5989 | IFS=$as_save_IFS |
| 5990 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5991 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 5992 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5993 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5994 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 5995 | break 2 |
| 5996 | fi |
| 5997 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 5998 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 5999 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6000 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6001 | fi |
| 6002 | fi |
| 6003 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 6004 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6005 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6006 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6007 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6009 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6010 | fi |
| 6011 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6012 | if test "x$ac_ct_RANLIB" = x; then |
| 6013 | RANLIB=":" |
| 6014 | else |
| 6015 | case $cross_compiling:$ac_tool_warned in |
| 6016 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6017 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6018 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6019 | ac_tool_warned=yes ;; |
| 6020 | esac |
| 6021 | RANLIB=$ac_ct_RANLIB |
| 6022 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6023 | else |
| 6024 | RANLIB="$ac_cv_prog_RANLIB" |
| 6025 | fi |
| 6026 | |
| 6027 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6028 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strerror in -lcposix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6029 | $as_echo_n "checking for strerror in -lcposix... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6030 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6031 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6032 | else |
| 6033 | ac_check_lib_save_LIBS=$LIBS |
| 6034 | LIBS="-lcposix $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6035 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6036 | /* end confdefs.h. */ |
| 6037 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6038 | /* Override any GCC internal prototype to avoid an error. |
| 6039 | Use char because int might match the return type of a GCC |
| 6040 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6041 | #ifdef __cplusplus |
| 6042 | extern "C" |
| 6043 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6044 | char strerror (); |
| 6045 | int |
| 6046 | main () |
| 6047 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6048 | return strerror (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6049 | ; |
| 6050 | return 0; |
| 6051 | } |
| 6052 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6053 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6054 | ac_cv_lib_cposix_strerror=yes |
| 6055 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6056 | ac_cv_lib_cposix_strerror=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6057 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6058 | rm -f core conftest.err conftest.$ac_objext \ |
| 6059 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6060 | LIBS=$ac_check_lib_save_LIBS |
| 6061 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6062 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cposix_strerror" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6063 | $as_echo "$ac_cv_lib_cposix_strerror" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6064 | if test "x$ac_cv_lib_cposix_strerror" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6065 | LIBS="$LIBS -lcposix" |
| 6066 | fi |
| 6067 | |
| 6068 | |
| 6069 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6070 | |
| 6071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 |
| 6072 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } |
| 6073 | if test "${ac_cv_path_GREP+set}" = set; then : |
| 6074 | $as_echo_n "(cached) " >&6 |
| 6075 | else |
| 6076 | if test -z "$GREP"; then |
| 6077 | ac_path_GREP_found=false |
| 6078 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6079 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6080 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6081 | do |
| 6082 | IFS=$as_save_IFS |
| 6083 | test -z "$as_dir" && as_dir=. |
| 6084 | for ac_prog in grep ggrep; do |
| 6085 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6086 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6087 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
| 6088 | # Check for GNU ac_path_GREP and select it if it is found. |
| 6089 | # Check for GNU $ac_path_GREP |
| 6090 | case `"$ac_path_GREP" --version 2>&1` in |
| 6091 | *GNU*) |
| 6092 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
| 6093 | *) |
| 6094 | ac_count=0 |
| 6095 | $as_echo_n 0123456789 >"conftest.in" |
| 6096 | while : |
| 6097 | do |
| 6098 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6099 | mv "conftest.tmp" "conftest.in" |
| 6100 | cp "conftest.in" "conftest.nl" |
| 6101 | $as_echo 'GREP' >> "conftest.nl" |
| 6102 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6103 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6104 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6105 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
| 6106 | # Best one so far, save it but keep looking for a better one |
| 6107 | ac_cv_path_GREP="$ac_path_GREP" |
| 6108 | ac_path_GREP_max=$ac_count |
| 6109 | fi |
| 6110 | # 10*(2^10) chars as input seems more than enough |
| 6111 | test $ac_count -gt 10 && break |
| 6112 | done |
| 6113 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6114 | esac |
| 6115 | |
| 6116 | $ac_path_GREP_found && break 3 |
| 6117 | done |
| 6118 | done |
| 6119 | done |
| 6120 | IFS=$as_save_IFS |
| 6121 | if test -z "$ac_cv_path_GREP"; then |
| 6122 | as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6123 | fi |
| 6124 | else |
| 6125 | ac_cv_path_GREP=$GREP |
| 6126 | fi |
| 6127 | |
| 6128 | fi |
| 6129 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 |
| 6130 | $as_echo "$ac_cv_path_GREP" >&6; } |
| 6131 | GREP="$ac_cv_path_GREP" |
| 6132 | |
| 6133 | |
| 6134 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
| 6135 | $as_echo_n "checking for egrep... " >&6; } |
| 6136 | if test "${ac_cv_path_EGREP+set}" = set; then : |
| 6137 | $as_echo_n "(cached) " >&6 |
| 6138 | else |
| 6139 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 6140 | then ac_cv_path_EGREP="$GREP -E" |
| 6141 | else |
| 6142 | if test -z "$EGREP"; then |
| 6143 | ac_path_EGREP_found=false |
| 6144 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 6145 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 6146 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 6147 | do |
| 6148 | IFS=$as_save_IFS |
| 6149 | test -z "$as_dir" && as_dir=. |
| 6150 | for ac_prog in egrep; do |
| 6151 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 6152 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 6153 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 6154 | # Check for GNU ac_path_EGREP and select it if it is found. |
| 6155 | # Check for GNU $ac_path_EGREP |
| 6156 | case `"$ac_path_EGREP" --version 2>&1` in |
| 6157 | *GNU*) |
| 6158 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 6159 | *) |
| 6160 | ac_count=0 |
| 6161 | $as_echo_n 0123456789 >"conftest.in" |
| 6162 | while : |
| 6163 | do |
| 6164 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 6165 | mv "conftest.tmp" "conftest.in" |
| 6166 | cp "conftest.in" "conftest.nl" |
| 6167 | $as_echo 'EGREP' >> "conftest.nl" |
| 6168 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 6169 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
| 6170 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
| 6171 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 6172 | # Best one so far, save it but keep looking for a better one |
| 6173 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 6174 | ac_path_EGREP_max=$ac_count |
| 6175 | fi |
| 6176 | # 10*(2^10) chars as input seems more than enough |
| 6177 | test $ac_count -gt 10 && break |
| 6178 | done |
| 6179 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 6180 | esac |
| 6181 | |
| 6182 | $ac_path_EGREP_found && break 3 |
| 6183 | done |
| 6184 | done |
| 6185 | done |
| 6186 | IFS=$as_save_IFS |
| 6187 | if test -z "$ac_cv_path_EGREP"; then |
| 6188 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
| 6189 | fi |
| 6190 | else |
| 6191 | ac_cv_path_EGREP=$EGREP |
| 6192 | fi |
| 6193 | |
| 6194 | fi |
| 6195 | fi |
| 6196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
| 6197 | $as_echo "$ac_cv_path_EGREP" >&6; } |
| 6198 | EGREP="$ac_cv_path_EGREP" |
| 6199 | |
| 6200 | |
| 6201 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 |
| 6202 | $as_echo_n "checking for ANSI C header files... " >&6; } |
| 6203 | if test "${ac_cv_header_stdc+set}" = set; then : |
| 6204 | $as_echo_n "(cached) " >&6 |
| 6205 | else |
| 6206 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6207 | /* end confdefs.h. */ |
| 6208 | #include <stdlib.h> |
| 6209 | #include <stdarg.h> |
| 6210 | #include <string.h> |
| 6211 | #include <float.h> |
| 6212 | |
| 6213 | int |
| 6214 | main () |
| 6215 | { |
| 6216 | |
| 6217 | ; |
| 6218 | return 0; |
| 6219 | } |
| 6220 | _ACEOF |
| 6221 | if ac_fn_c_try_compile "$LINENO"; then : |
| 6222 | ac_cv_header_stdc=yes |
| 6223 | else |
| 6224 | ac_cv_header_stdc=no |
| 6225 | fi |
| 6226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6227 | |
| 6228 | if test $ac_cv_header_stdc = yes; then |
| 6229 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
| 6230 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6231 | /* end confdefs.h. */ |
| 6232 | #include <string.h> |
| 6233 | |
| 6234 | _ACEOF |
| 6235 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6236 | $EGREP "memchr" >/dev/null 2>&1; then : |
| 6237 | |
| 6238 | else |
| 6239 | ac_cv_header_stdc=no |
| 6240 | fi |
| 6241 | rm -f conftest* |
| 6242 | |
| 6243 | fi |
| 6244 | |
| 6245 | if test $ac_cv_header_stdc = yes; then |
| 6246 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
| 6247 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6248 | /* end confdefs.h. */ |
| 6249 | #include <stdlib.h> |
| 6250 | |
| 6251 | _ACEOF |
| 6252 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
| 6253 | $EGREP "free" >/dev/null 2>&1; then : |
| 6254 | |
| 6255 | else |
| 6256 | ac_cv_header_stdc=no |
| 6257 | fi |
| 6258 | rm -f conftest* |
| 6259 | |
| 6260 | fi |
| 6261 | |
| 6262 | if test $ac_cv_header_stdc = yes; then |
| 6263 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
| 6264 | if test "$cross_compiling" = yes; then : |
| 6265 | : |
| 6266 | else |
| 6267 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
| 6268 | /* end confdefs.h. */ |
| 6269 | #include <ctype.h> |
| 6270 | #include <stdlib.h> |
| 6271 | #if ((' ' & 0x0FF) == 0x020) |
| 6272 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
| 6273 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
| 6274 | #else |
| 6275 | # define ISLOWER(c) \ |
| 6276 | (('a' <= (c) && (c) <= 'i') \ |
| 6277 | || ('j' <= (c) && (c) <= 'r') \ |
| 6278 | || ('s' <= (c) && (c) <= 'z')) |
| 6279 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
| 6280 | #endif |
| 6281 | |
| 6282 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
| 6283 | int |
| 6284 | main () |
| 6285 | { |
| 6286 | int i; |
| 6287 | for (i = 0; i < 256; i++) |
| 6288 | if (XOR (islower (i), ISLOWER (i)) |
| 6289 | || toupper (i) != TOUPPER (i)) |
| 6290 | return 2; |
| 6291 | return 0; |
| 6292 | } |
| 6293 | _ACEOF |
| 6294 | if ac_fn_c_try_run "$LINENO"; then : |
| 6295 | |
| 6296 | else |
| 6297 | ac_cv_header_stdc=no |
| 6298 | fi |
| 6299 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6300 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
| 6301 | fi |
| 6302 | |
| 6303 | fi |
| 6304 | fi |
| 6305 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 |
| 6306 | $as_echo "$ac_cv_header_stdc" >&6; } |
| 6307 | if test $ac_cv_header_stdc = yes; then |
| 6308 | |
| 6309 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h |
| 6310 | |
| 6311 | fi |
| 6312 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6313 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6314 | $as_echo_n "checking for an ANSI C-conforming const... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6315 | if test "${ac_cv_c_const+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6316 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6317 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6318 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6319 | /* end confdefs.h. */ |
| 6320 | |
| 6321 | int |
| 6322 | main () |
| 6323 | { |
| 6324 | /* FIXME: Include the comments suggested by Paul. */ |
| 6325 | #ifndef __cplusplus |
| 6326 | /* Ultrix mips cc rejects this. */ |
| 6327 | typedef int charset[2]; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6328 | const charset cs; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6329 | /* SunOS 4.1.1 cc rejects this. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6330 | char const *const *pcpcc; |
| 6331 | char **ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6332 | /* NEC SVR4.0.2 mips cc rejects this. */ |
| 6333 | struct point {int x, y;}; |
| 6334 | static struct point const zero = {0,0}; |
| 6335 | /* AIX XL C 1.02.0.0 rejects this. |
| 6336 | It does not let you subtract one const X* pointer from another in |
| 6337 | an arm of an if-expression whose if-part is not a constant |
| 6338 | expression */ |
| 6339 | const char *g = "string"; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6340 | pcpcc = &g + (g ? g-g : 0); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6341 | /* HPUX 7.0 cc rejects these. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6342 | ++pcpcc; |
| 6343 | ppc = (char**) pcpcc; |
| 6344 | pcpcc = (char const *const *) ppc; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6345 | { /* SCO 3.2v4 cc rejects this. */ |
| 6346 | char *t; |
| 6347 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
| 6348 | |
| 6349 | *t++ = 0; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6350 | if (s) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6351 | } |
| 6352 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
| 6353 | int x[] = {25, 17}; |
| 6354 | const int *foo = &x[0]; |
| 6355 | ++foo; |
| 6356 | } |
| 6357 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
| 6358 | typedef const int *iptr; |
| 6359 | iptr p = 0; |
| 6360 | ++p; |
| 6361 | } |
| 6362 | { /* AIX XL C 1.02.0.0 rejects this saying |
| 6363 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
| 6364 | struct s { int j; const int *ap[3]; }; |
| 6365 | struct s *b; b->j = 5; |
| 6366 | } |
| 6367 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
| 6368 | const int foo = 10; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6369 | if (!foo) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6370 | } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6371 | return !cs[0] && !zero.x; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6372 | #endif |
| 6373 | |
| 6374 | ; |
| 6375 | return 0; |
| 6376 | } |
| 6377 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6378 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6379 | ac_cv_c_const=yes |
| 6380 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6381 | ac_cv_c_const=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6382 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6383 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6384 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6385 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6386 | $as_echo "$ac_cv_c_const" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6387 | if test $ac_cv_c_const = no; then |
| 6388 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6389 | $as_echo "#define const /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6390 | |
| 6391 | fi |
| 6392 | |
| 6393 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6394 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6395 | $as_echo_n "checking for signed... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6396 | if test "${bh_cv_c_signed+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6397 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6398 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6399 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6400 | /* end confdefs.h. */ |
| 6401 | |
| 6402 | int |
| 6403 | main () |
| 6404 | { |
| 6405 | signed char x; |
| 6406 | ; |
| 6407 | return 0; |
| 6408 | } |
| 6409 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6410 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6411 | bh_cv_c_signed=yes |
| 6412 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6413 | bh_cv_c_signed=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6414 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6415 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6416 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6417 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $bh_cv_c_signed" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6418 | $as_echo "$bh_cv_c_signed" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6419 | if test $bh_cv_c_signed = no; then |
| 6420 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6421 | $as_echo "#define signed /**/" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6422 | |
| 6423 | fi |
| 6424 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6425 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6426 | $as_echo_n "checking for inline... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6427 | if test "${ac_cv_c_inline+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6428 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6429 | else |
| 6430 | ac_cv_c_inline=no |
| 6431 | for ac_kw in inline __inline__ __inline; do |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6433 | /* end confdefs.h. */ |
| 6434 | #ifndef __cplusplus |
| 6435 | typedef int foo_t; |
| 6436 | static $ac_kw foo_t static_foo () {return 0; } |
| 6437 | $ac_kw foo_t foo () {return 0; } |
| 6438 | #endif |
| 6439 | |
| 6440 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6441 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6442 | ac_cv_c_inline=$ac_kw |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6443 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6444 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 6445 | test "$ac_cv_c_inline" != no && break |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6446 | done |
| 6447 | |
| 6448 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6449 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6450 | $as_echo "$ac_cv_c_inline" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6451 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6452 | case $ac_cv_c_inline in |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6453 | inline | yes) ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6454 | *) |
| 6455 | case $ac_cv_c_inline in |
| 6456 | no) ac_val=;; |
| 6457 | *) ac_val=$ac_cv_c_inline;; |
| 6458 | esac |
| 6459 | cat >>confdefs.h <<_ACEOF |
| 6460 | #ifndef __cplusplus |
| 6461 | #define inline $ac_val |
| 6462 | #endif |
| 6463 | _ACEOF |
| 6464 | ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6465 | esac |
| 6466 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 6467 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
| 6468 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
| 6469 | inttypes.h stdint.h unistd.h |
| 6470 | do : |
| 6471 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 6472 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 6473 | " |
| 6474 | eval as_val=\$$as_ac_Header |
| 6475 | if test "x$as_val" = x""yes; then : |
| 6476 | cat >>confdefs.h <<_ACEOF |
| 6477 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
| 6478 | _ACEOF |
| 6479 | |
| 6480 | fi |
| 6481 | |
| 6482 | done |
| 6483 | |
| 6484 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6485 | ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" |
| 6486 | if test "x$ac_cv_type_off_t" = x""yes; then : |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 6487 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6488 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6489 | |
| 6490 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6491 | #define off_t long int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6492 | _ACEOF |
| 6493 | |
| 6494 | fi |
| 6495 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6496 | ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" |
| 6497 | if test "x$ac_cv_type_size_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6498 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6499 | else |
| 6500 | |
| 6501 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6502 | #define size_t unsigned int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6503 | _ACEOF |
| 6504 | |
| 6505 | fi |
| 6506 | |
| 6507 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6508 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6509 | $as_echo_n "checking for long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6510 | if test "${ac_cv_type_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6511 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6512 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6513 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6514 | /* end confdefs.h. */ |
| 6515 | long long ll = 1LL; int i = 63; |
| 6516 | int |
| 6517 | main () |
| 6518 | { |
| 6519 | long long llmax = (long long) -1; |
| 6520 | return ll << i | ll >> i | llmax / ll | llmax % ll; |
| 6521 | ; |
| 6522 | return 0; |
| 6523 | } |
| 6524 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6525 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6526 | ac_cv_type_long_long=yes |
| 6527 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6528 | ac_cv_type_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6529 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6530 | rm -f core conftest.err conftest.$ac_objext \ |
| 6531 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6532 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6533 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6534 | $as_echo "$ac_cv_type_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6535 | if test $ac_cv_type_long_long = yes; then |
| 6536 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6537 | $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6538 | |
| 6539 | fi |
| 6540 | |
| 6541 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6542 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6543 | $as_echo_n "checking for long double... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6544 | if test "${gt_cv_c_long_double+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6545 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6546 | else |
| 6547 | if test "$GCC" = yes; then |
| 6548 | gt_cv_c_long_double=yes |
| 6549 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6550 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6551 | /* end confdefs.h. */ |
| 6552 | |
| 6553 | /* The Stardent Vistra knows sizeof(long double), but does not support it. */ |
| 6554 | long double foo = 0.0; |
| 6555 | /* On Ultrix 4.3 cc, long double is 4 and double is 8. */ |
| 6556 | int array [2*(sizeof(long double) >= sizeof(double)) - 1]; |
| 6557 | |
| 6558 | int |
| 6559 | main () |
| 6560 | { |
| 6561 | |
| 6562 | ; |
| 6563 | return 0; |
| 6564 | } |
| 6565 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6566 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6567 | gt_cv_c_long_double=yes |
| 6568 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6569 | gt_cv_c_long_double=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6570 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6571 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6572 | fi |
| 6573 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6574 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_long_double" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6575 | $as_echo "$gt_cv_c_long_double" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6576 | if test $gt_cv_c_long_double = yes; then |
| 6577 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6578 | $as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6579 | |
| 6580 | fi |
| 6581 | |
| 6582 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6583 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6584 | $as_echo_n "checking for wchar_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6585 | if test "${gt_cv_c_wchar_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6586 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6587 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6588 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6589 | /* end confdefs.h. */ |
| 6590 | #include <stddef.h> |
| 6591 | wchar_t foo = (wchar_t)'\0'; |
| 6592 | int |
| 6593 | main () |
| 6594 | { |
| 6595 | |
| 6596 | ; |
| 6597 | return 0; |
| 6598 | } |
| 6599 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6600 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6601 | gt_cv_c_wchar_t=yes |
| 6602 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6603 | gt_cv_c_wchar_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6604 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6606 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6608 | $as_echo "$gt_cv_c_wchar_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6609 | if test $gt_cv_c_wchar_t = yes; then |
| 6610 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6611 | $as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6612 | |
| 6613 | fi |
| 6614 | |
| 6615 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6616 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6617 | $as_echo_n "checking for wint_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6618 | if test "${gt_cv_c_wint_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6619 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6620 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6621 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6622 | /* end confdefs.h. */ |
| 6623 | #include <wchar.h> |
| 6624 | wint_t foo = (wchar_t)'\0'; |
| 6625 | int |
| 6626 | main () |
| 6627 | { |
| 6628 | |
| 6629 | ; |
| 6630 | return 0; |
| 6631 | } |
| 6632 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6633 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6634 | gt_cv_c_wint_t=yes |
| 6635 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6636 | gt_cv_c_wint_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6637 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6639 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6641 | $as_echo "$gt_cv_c_wint_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6642 | if test $gt_cv_c_wint_t = yes; then |
| 6643 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6644 | $as_echo "#define HAVE_WINT_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6645 | |
| 6646 | fi |
| 6647 | |
| 6648 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6650 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6651 | if test "${jm_ac_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6652 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6653 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6654 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6655 | /* end confdefs.h. */ |
| 6656 | #include <sys/types.h> |
| 6657 | #include <inttypes.h> |
| 6658 | int |
| 6659 | main () |
| 6660 | { |
| 6661 | uintmax_t i = (uintmax_t) -1; |
| 6662 | ; |
| 6663 | return 0; |
| 6664 | } |
| 6665 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6666 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6667 | jm_ac_cv_header_inttypes_h=yes |
| 6668 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6669 | jm_ac_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6670 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6672 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6673 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6674 | $as_echo "$jm_ac_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6675 | if test $jm_ac_cv_header_inttypes_h = yes; then |
| 6676 | |
| 6677 | cat >>confdefs.h <<_ACEOF |
| 6678 | #define HAVE_INTTYPES_H_WITH_UINTMAX 1 |
| 6679 | _ACEOF |
| 6680 | |
| 6681 | fi |
| 6682 | |
| 6683 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6684 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6685 | $as_echo_n "checking for stdint.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6686 | if test "${jm_ac_cv_header_stdint_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6687 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6688 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6689 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6690 | /* end confdefs.h. */ |
| 6691 | #include <sys/types.h> |
| 6692 | #include <stdint.h> |
| 6693 | int |
| 6694 | main () |
| 6695 | { |
| 6696 | uintmax_t i = (uintmax_t) -1; |
| 6697 | ; |
| 6698 | return 0; |
| 6699 | } |
| 6700 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6701 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6702 | jm_ac_cv_header_stdint_h=yes |
| 6703 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6704 | jm_ac_cv_header_stdint_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6705 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6706 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6707 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6708 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $jm_ac_cv_header_stdint_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6709 | $as_echo "$jm_ac_cv_header_stdint_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6710 | if test $jm_ac_cv_header_stdint_h = yes; then |
| 6711 | |
| 6712 | cat >>confdefs.h <<_ACEOF |
| 6713 | #define HAVE_STDINT_H_WITH_UINTMAX 1 |
| 6714 | _ACEOF |
| 6715 | |
| 6716 | fi |
| 6717 | |
| 6718 | |
| 6719 | |
| 6720 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6721 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6722 | $as_echo_n "checking for intmax_t... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6723 | if test "${gt_cv_c_intmax_t+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6724 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6725 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6726 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6727 | /* end confdefs.h. */ |
| 6728 | |
| 6729 | #include <stddef.h> |
| 6730 | #include <stdlib.h> |
| 6731 | #if HAVE_STDINT_H_WITH_UINTMAX |
| 6732 | #include <stdint.h> |
| 6733 | #endif |
| 6734 | #if HAVE_INTTYPES_H_WITH_UINTMAX |
| 6735 | #include <inttypes.h> |
| 6736 | #endif |
| 6737 | |
| 6738 | int |
| 6739 | main () |
| 6740 | { |
| 6741 | intmax_t x = -1; |
| 6742 | ; |
| 6743 | return 0; |
| 6744 | } |
| 6745 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6746 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6747 | gt_cv_c_intmax_t=yes |
| 6748 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6749 | gt_cv_c_intmax_t=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6750 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6752 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6753 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6754 | $as_echo "$gt_cv_c_intmax_t" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6755 | if test $gt_cv_c_intmax_t = yes; then |
| 6756 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6757 | $as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6758 | |
| 6759 | fi |
| 6760 | |
| 6761 | |
| 6762 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6763 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6764 | $as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6765 | if test "${gt_cv_func_printf_posix+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6766 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6767 | else |
| 6768 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6769 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6770 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6771 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6772 | /* end confdefs.h. */ |
| 6773 | |
| 6774 | #if defined __NetBSD__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ |
| 6775 | notposix |
| 6776 | #endif |
| 6777 | |
| 6778 | _ACEOF |
| 6779 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6780 | $EGREP "notposix" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6781 | gt_cv_func_printf_posix="guessing no" |
| 6782 | else |
| 6783 | gt_cv_func_printf_posix="guessing yes" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6784 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6785 | rm -f conftest* |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6786 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6787 | |
| 6788 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6790 | /* end confdefs.h. */ |
| 6791 | |
| 6792 | #include <stdio.h> |
| 6793 | #include <string.h> |
| 6794 | /* The string "%2$d %1$d", with dollar characters protected from the shell's |
| 6795 | dollar expansion (possibly an autoconf bug). */ |
| 6796 | static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; |
| 6797 | static char buf[100]; |
| 6798 | int main () |
| 6799 | { |
| 6800 | sprintf (buf, format, 33, 55); |
| 6801 | return (strcmp (buf, "55 33") != 0); |
| 6802 | } |
| 6803 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6804 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6805 | gt_cv_func_printf_posix=yes |
| 6806 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6807 | gt_cv_func_printf_posix=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 6808 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6809 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 6810 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6811 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6812 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6813 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6814 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6815 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6816 | $as_echo "$gt_cv_func_printf_posix" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6817 | case $gt_cv_func_printf_posix in |
| 6818 | *yes) |
| 6819 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6820 | $as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6821 | |
| 6822 | ;; |
| 6823 | esac |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6824 | |
| 6825 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
| 6826 | # for constant arguments. Useless! |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6827 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6828 | $as_echo_n "checking for working alloca.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6829 | if test "${ac_cv_working_alloca_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6830 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6831 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6832 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6833 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6834 | #include <alloca.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6835 | int |
| 6836 | main () |
| 6837 | { |
| 6838 | char *p = (char *) alloca (2 * sizeof (int)); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6839 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6840 | ; |
| 6841 | return 0; |
| 6842 | } |
| 6843 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6844 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6845 | ac_cv_working_alloca_h=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6846 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6847 | ac_cv_working_alloca_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6848 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6849 | rm -f core conftest.err conftest.$ac_objext \ |
| 6850 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6851 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6853 | $as_echo "$ac_cv_working_alloca_h" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6854 | if test $ac_cv_working_alloca_h = yes; then |
| 6855 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6856 | $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6857 | |
| 6858 | fi |
| 6859 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6860 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6861 | $as_echo_n "checking for alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6862 | if test "${ac_cv_func_alloca_works+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6863 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6864 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6865 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6866 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6867 | #ifdef __GNUC__ |
| 6868 | # define alloca __builtin_alloca |
| 6869 | #else |
| 6870 | # ifdef _MSC_VER |
| 6871 | # include <malloc.h> |
| 6872 | # define alloca _alloca |
| 6873 | # else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 6874 | # ifdef HAVE_ALLOCA_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6875 | # include <alloca.h> |
| 6876 | # else |
| 6877 | # ifdef _AIX |
| 6878 | #pragma alloca |
| 6879 | # else |
| 6880 | # ifndef alloca /* predefined by HP cc +Olibcalls */ |
| 6881 | char *alloca (); |
| 6882 | # endif |
| 6883 | # endif |
| 6884 | # endif |
| 6885 | # endif |
| 6886 | #endif |
| 6887 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6888 | int |
| 6889 | main () |
| 6890 | { |
| 6891 | char *p = (char *) alloca (1); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6892 | if (p) return 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6893 | ; |
| 6894 | return 0; |
| 6895 | } |
| 6896 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6897 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6898 | ac_cv_func_alloca_works=yes |
| 6899 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6900 | ac_cv_func_alloca_works=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6901 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6902 | rm -f core conftest.err conftest.$ac_objext \ |
| 6903 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6904 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6905 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6906 | $as_echo "$ac_cv_func_alloca_works" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6907 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6908 | if test $ac_cv_func_alloca_works = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6909 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6910 | $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6911 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6912 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6913 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
| 6914 | # that cause trouble. Some versions do not even contain alloca or |
| 6915 | # contain a buggy version. If you still want to use their alloca, |
| 6916 | # use ar to extract alloca.o from them instead of compiling alloca.c. |
| 6917 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6918 | ALLOCA=\${LIBOBJDIR}alloca.$ac_objext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6919 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6920 | $as_echo "#define C_ALLOCA 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6921 | |
| 6922 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6923 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6924 | $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6925 | if test "${ac_cv_os_cray+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6926 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6927 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6928 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6929 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6930 | #if defined CRAY && ! defined CRAY2 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6931 | webecray |
| 6932 | #else |
| 6933 | wenotbecray |
| 6934 | #endif |
| 6935 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6936 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6937 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6938 | $EGREP "webecray" >/dev/null 2>&1; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6939 | ac_cv_os_cray=yes |
| 6940 | else |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6941 | ac_cv_os_cray=no |
| 6942 | fi |
| 6943 | rm -f conftest* |
| 6944 | |
| 6945 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6946 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6947 | $as_echo "$ac_cv_os_cray" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6948 | if test $ac_cv_os_cray = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6949 | for ac_func in _getb67 GETB67 getb67; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6950 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6951 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 6952 | eval as_val=\$$as_ac_var |
| 6953 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6954 | |
| 6955 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6956 | #define CRAY_STACKSEG_END $ac_func |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6957 | _ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6958 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6959 | break |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6960 | fi |
| 6961 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6962 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6963 | fi |
| 6964 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6966 | $as_echo_n "checking stack direction for C alloca... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6967 | if test "${ac_cv_c_stack_direction+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 6968 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6969 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6970 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6971 | ac_cv_c_stack_direction=0 |
| 6972 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6973 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6974 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6975 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6976 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6977 | find_stack_direction () |
| 6978 | { |
| 6979 | static char *addr = 0; |
| 6980 | auto char dummy; |
| 6981 | if (addr == 0) |
| 6982 | { |
| 6983 | addr = &dummy; |
| 6984 | return find_stack_direction (); |
| 6985 | } |
| 6986 | else |
| 6987 | return (&dummy > addr) ? 1 : -1; |
| 6988 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6989 | |
| 6990 | int |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6991 | main () |
| 6992 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 6993 | return find_stack_direction () < 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6994 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 6995 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6996 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 6997 | ac_cv_c_stack_direction=1 |
| 6998 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 6999 | ac_cv_c_stack_direction=-1 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7000 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7001 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7002 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7003 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7004 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7005 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7006 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7007 | $as_echo "$ac_cv_c_stack_direction" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7008 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7009 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7010 | _ACEOF |
| 7011 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7012 | |
| 7013 | fi |
| 7014 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7015 | |
| 7016 | |
| 7017 | |
| 7018 | for ac_header in $ac_header_list |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7019 | do : |
| 7020 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7021 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default |
| 7022 | " |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7023 | eval as_val=\$$as_ac_Header |
| 7024 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7025 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7026 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7027 | _ACEOF |
| 7028 | |
| 7029 | fi |
| 7030 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7031 | done |
| 7032 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7033 | |
| 7034 | |
| 7035 | |
| 7036 | |
| 7037 | |
| 7038 | |
| 7039 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7040 | for ac_func in getpagesize |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7041 | do : |
| 7042 | ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" |
| 7043 | if test "x$ac_cv_func_getpagesize" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7044 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7045 | #define HAVE_GETPAGESIZE 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7046 | _ACEOF |
| 7047 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7048 | fi |
| 7049 | done |
| 7050 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7051 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7052 | $as_echo_n "checking for working mmap... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7053 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7054 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7055 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7056 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7057 | ac_cv_func_mmap_fixed_mapped=no |
| 7058 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7059 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7060 | /* end confdefs.h. */ |
| 7061 | $ac_includes_default |
| 7062 | /* malloc might have been renamed as rpl_malloc. */ |
| 7063 | #undef malloc |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7064 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7065 | /* Thanks to Mike Haertel and Jim Avera for this test. |
| 7066 | Here is a matrix of mmap possibilities: |
| 7067 | mmap private not fixed |
| 7068 | mmap private fixed at somewhere currently unmapped |
| 7069 | mmap private fixed at somewhere already mapped |
| 7070 | mmap shared not fixed |
| 7071 | mmap shared fixed at somewhere currently unmapped |
| 7072 | mmap shared fixed at somewhere already mapped |
| 7073 | For private mappings, we should verify that changes cannot be read() |
| 7074 | back from the file, nor mmap's back from the file at a different |
| 7075 | address. (There have been systems where private was not correctly |
| 7076 | implemented like the infamous i386 svr4.0, and systems where the |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7077 | VM page cache was not coherent with the file system buffer cache |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7078 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
| 7079 | For shared mappings, we should conversely verify that changes get |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7080 | propagated back to all the places they're supposed to be. |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7081 | |
| 7082 | Grep wants private fixed already mapped. |
| 7083 | The main things grep needs to know about mmap are: |
| 7084 | * does it exist and is it safe to write into the mmap'd area |
| 7085 | * how to use it (BSD variants) */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7086 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7087 | #include <fcntl.h> |
| 7088 | #include <sys/mman.h> |
| 7089 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7090 | #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7091 | char *malloc (); |
| 7092 | #endif |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7093 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7094 | /* This mess was copied from the GNU getpagesize.h. */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7095 | #ifndef HAVE_GETPAGESIZE |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7096 | # ifdef _SC_PAGESIZE |
| 7097 | # define getpagesize() sysconf(_SC_PAGESIZE) |
| 7098 | # else /* no _SC_PAGESIZE */ |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7099 | # ifdef HAVE_SYS_PARAM_H |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7100 | # include <sys/param.h> |
| 7101 | # ifdef EXEC_PAGESIZE |
| 7102 | # define getpagesize() EXEC_PAGESIZE |
| 7103 | # else /* no EXEC_PAGESIZE */ |
| 7104 | # ifdef NBPG |
| 7105 | # define getpagesize() NBPG * CLSIZE |
| 7106 | # ifndef CLSIZE |
| 7107 | # define CLSIZE 1 |
| 7108 | # endif /* no CLSIZE */ |
| 7109 | # else /* no NBPG */ |
| 7110 | # ifdef NBPC |
| 7111 | # define getpagesize() NBPC |
| 7112 | # else /* no NBPC */ |
| 7113 | # ifdef PAGESIZE |
| 7114 | # define getpagesize() PAGESIZE |
| 7115 | # endif /* PAGESIZE */ |
| 7116 | # endif /* no NBPC */ |
| 7117 | # endif /* no NBPG */ |
| 7118 | # endif /* no EXEC_PAGESIZE */ |
| 7119 | # else /* no HAVE_SYS_PARAM_H */ |
| 7120 | # define getpagesize() 8192 /* punt totally */ |
| 7121 | # endif /* no HAVE_SYS_PARAM_H */ |
| 7122 | # endif /* no _SC_PAGESIZE */ |
| 7123 | |
| 7124 | #endif /* no HAVE_GETPAGESIZE */ |
| 7125 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7126 | int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7127 | main () |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7128 | { |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7129 | char *data, *data2, *data3; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7130 | const char *cdata2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7131 | int i, pagesize; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7132 | int fd, fd2; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7133 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7134 | pagesize = getpagesize (); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7135 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7136 | /* First, make a file with some known garbage in it. */ |
| 7137 | data = (char *) malloc (pagesize); |
| 7138 | if (!data) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7139 | return 1; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7140 | for (i = 0; i < pagesize; ++i) |
| 7141 | *(data + i) = rand (); |
| 7142 | umask (0); |
| 7143 | fd = creat ("conftest.mmap", 0600); |
| 7144 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7145 | return 2; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7146 | if (write (fd, data, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7147 | return 3; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7148 | close (fd); |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7149 | |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7150 | /* Next, check that the tail of a page is zero-filled. File must have |
| 7151 | non-zero length, otherwise we risk SIGBUS for entire page. */ |
| 7152 | fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); |
| 7153 | if (fd2 < 0) |
| 7154 | return 4; |
| 7155 | cdata2 = ""; |
| 7156 | if (write (fd2, cdata2, 1) != 1) |
| 7157 | return 5; |
| 7158 | data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); |
| 7159 | if (data2 == MAP_FAILED) |
| 7160 | return 6; |
| 7161 | for (i = 0; i < pagesize; ++i) |
| 7162 | if (*(data2 + i)) |
| 7163 | return 7; |
| 7164 | close (fd2); |
| 7165 | if (munmap (data2, pagesize)) |
| 7166 | return 8; |
| 7167 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7168 | /* Next, try to mmap the file at a fixed address which already has |
| 7169 | something else allocated at it. If we can, also make sure that |
| 7170 | we see the same garbage. */ |
| 7171 | fd = open ("conftest.mmap", O_RDWR); |
| 7172 | if (fd < 0) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7173 | return 9; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7174 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, |
| 7175 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7176 | return 10; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7177 | for (i = 0; i < pagesize; ++i) |
| 7178 | if (*(data + i) != *(data2 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7179 | return 11; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7180 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7181 | /* Finally, make sure that changes to the mapped area do not |
| 7182 | percolate back to the file as seen by read(). (This is a bug on |
| 7183 | some variants of i386 svr4.0.) */ |
| 7184 | for (i = 0; i < pagesize; ++i) |
| 7185 | *(data2 + i) = *(data2 + i) + 1; |
| 7186 | data3 = (char *) malloc (pagesize); |
| 7187 | if (!data3) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7188 | return 12; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7189 | if (read (fd, data3, pagesize) != pagesize) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7190 | return 13; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7191 | for (i = 0; i < pagesize; ++i) |
| 7192 | if (*(data + i) != *(data3 + i)) |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7193 | return 14; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7194 | close (fd); |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7195 | return 0; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7196 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7197 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7198 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7199 | ac_cv_func_mmap_fixed_mapped=yes |
| 7200 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7201 | ac_cv_func_mmap_fixed_mapped=no |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7202 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7203 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7204 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7205 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7206 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7207 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7208 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7209 | $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7210 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7211 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7212 | $as_echo "#define HAVE_MMAP 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7213 | |
| 7214 | fi |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 7215 | rm -f conftest.mmap conftest.txt |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 7216 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7217 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7218 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7219 | $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7220 | if test "${ac_cv_gnu_library_2_1+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7221 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7222 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7223 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7224 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7225 | |
| 7226 | #include <features.h> |
| 7227 | #ifdef __GNU_LIBRARY__ |
| 7228 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
| 7229 | Lucky GNU user |
| 7230 | #endif |
| 7231 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7232 | |
| 7233 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7234 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7235 | $EGREP "Lucky GNU user" >/dev/null 2>&1; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7236 | ac_cv_gnu_library_2_1=yes |
| 7237 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7238 | ac_cv_gnu_library_2_1=no |
| 7239 | fi |
| 7240 | rm -f conftest* |
| 7241 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7242 | |
| 7243 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7244 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7246 | $as_echo "$ac_cv_gnu_library_2_1" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7247 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7248 | GLIBC21="$ac_cv_gnu_library_2_1" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7249 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7250 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7251 | |
| 7252 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7253 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7254 | $as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7255 | if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7256 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7257 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7258 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7259 | if test "$cross_compiling" = yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7260 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7261 | # Guess based on the CPU. |
| 7262 | case "$host_cpu" in |
| 7263 | alpha* | i3456786 | m68k | s390*) |
| 7264 | gt_cv_int_divbyzero_sigfpe="guessing yes";; |
| 7265 | *) |
| 7266 | gt_cv_int_divbyzero_sigfpe="guessing no";; |
| 7267 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7268 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7269 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7270 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7271 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7272 | |
| 7273 | #include <stdlib.h> |
| 7274 | #include <signal.h> |
| 7275 | |
| 7276 | static void |
| 7277 | #ifdef __cplusplus |
| 7278 | sigfpe_handler (int sig) |
| 7279 | #else |
| 7280 | sigfpe_handler (sig) int sig; |
| 7281 | #endif |
| 7282 | { |
| 7283 | /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ |
| 7284 | exit (sig != SIGFPE); |
| 7285 | } |
| 7286 | |
| 7287 | int x = 1; |
| 7288 | int y = 0; |
| 7289 | int z; |
| 7290 | int nan; |
| 7291 | |
| 7292 | int main () |
| 7293 | { |
| 7294 | signal (SIGFPE, sigfpe_handler); |
| 7295 | /* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ |
| 7296 | #if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) |
| 7297 | signal (SIGTRAP, sigfpe_handler); |
| 7298 | #endif |
| 7299 | /* Linux/SPARC yields signal SIGILL. */ |
| 7300 | #if defined (__sparc__) && defined (__linux__) |
| 7301 | signal (SIGILL, sigfpe_handler); |
| 7302 | #endif |
| 7303 | |
| 7304 | z = x / y; |
| 7305 | nan = y / y; |
| 7306 | exit (1); |
| 7307 | } |
| 7308 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7309 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7310 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7311 | gt_cv_int_divbyzero_sigfpe=yes |
| 7312 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7313 | gt_cv_int_divbyzero_sigfpe=no |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7314 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7315 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 7316 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7317 | fi |
| 7318 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7319 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7320 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7321 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7322 | $as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7323 | case "$gt_cv_int_divbyzero_sigfpe" in |
| 7324 | *yes) value=1;; |
| 7325 | *) value=0;; |
| 7326 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7327 | |
| 7328 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7329 | #define INTDIV0_RAISES_SIGFPE $value |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7330 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7331 | |
| 7332 | |
| 7333 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7335 | $as_echo_n "checking for unsigned long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7336 | if test "${ac_cv_type_unsigned_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7337 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7338 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7340 | /* end confdefs.h. */ |
| 7341 | unsigned long long ull = 1ULL; int i = 63; |
| 7342 | int |
| 7343 | main () |
| 7344 | { |
| 7345 | unsigned long long ullmax = (unsigned long long) -1; |
| 7346 | return ull << i | ull >> i | ullmax / ull | ullmax % ull; |
| 7347 | ; |
| 7348 | return 0; |
| 7349 | } |
| 7350 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7351 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7352 | ac_cv_type_unsigned_long_long=yes |
| 7353 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7354 | ac_cv_type_unsigned_long_long=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7355 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7356 | rm -f core conftest.err conftest.$ac_objext \ |
| 7357 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7358 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7359 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7360 | $as_echo "$ac_cv_type_unsigned_long_long" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7361 | if test $ac_cv_type_unsigned_long_long = yes; then |
| 7362 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7363 | $as_echo "#define HAVE_UNSIGNED_LONG_LONG 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7364 | |
| 7365 | fi |
| 7366 | |
| 7367 | |
| 7368 | |
| 7369 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7370 | if test $jm_ac_cv_header_inttypes_h = no && test $jm_ac_cv_header_stdint_h = no; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7371 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7372 | test $ac_cv_type_unsigned_long_long = yes \ |
| 7373 | && ac_type='unsigned long long' \ |
| 7374 | || ac_type='unsigned long' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7375 | |
| 7376 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7377 | #define uintmax_t $ac_type |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7378 | _ACEOF |
| 7379 | |
| 7380 | else |
| 7381 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7382 | $as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7383 | |
| 7384 | fi |
| 7385 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7386 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7387 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7388 | $as_echo_n "checking for inttypes.h... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7389 | if test "${gt_cv_header_inttypes_h+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7390 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7391 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7392 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7393 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7394 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7395 | #include <sys/types.h> |
| 7396 | #include <inttypes.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7397 | int |
| 7398 | main () |
| 7399 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7400 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7401 | ; |
| 7402 | return 0; |
| 7403 | } |
| 7404 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7405 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7406 | gt_cv_header_inttypes_h=yes |
| 7407 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7408 | gt_cv_header_inttypes_h=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7409 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7411 | |
| 7412 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7413 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_header_inttypes_h" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7414 | $as_echo "$gt_cv_header_inttypes_h" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7415 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7416 | |
| 7417 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7418 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7419 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7420 | |
| 7421 | fi |
| 7422 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 7423 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7424 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7425 | if test $gt_cv_header_inttypes_h = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7426 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7427 | $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7428 | if test "${gt_cv_inttypes_pri_broken+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7429 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 7430 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7431 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7432 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7433 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7434 | #include <inttypes.h> |
| 7435 | #ifdef PRId32 |
| 7436 | char *p = PRId32; |
| 7437 | #endif |
| 7438 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7439 | int |
| 7440 | main () |
| 7441 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7442 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7443 | ; |
| 7444 | return 0; |
| 7445 | } |
| 7446 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7447 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7448 | gt_cv_inttypes_pri_broken=no |
| 7449 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7450 | gt_cv_inttypes_pri_broken=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7451 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7452 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7453 | |
| 7454 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7455 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7456 | $as_echo "$gt_cv_inttypes_pri_broken" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7457 | fi |
| 7458 | if test "$gt_cv_inttypes_pri_broken" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7459 | |
| 7460 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7461 | #define PRI_MACROS_BROKEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7462 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7463 | |
| 7464 | fi |
| 7465 | |
| 7466 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7467 | for ac_header in stdint.h |
| 7468 | do : |
| 7469 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7470 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7471 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7472 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7473 | _ACEOF |
| 7474 | |
| 7475 | fi |
| 7476 | |
| 7477 | done |
| 7478 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7479 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7480 | $as_echo_n "checking for SIZE_MAX... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7481 | result= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7482 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7483 | /* end confdefs.h. */ |
| 7484 | |
| 7485 | #include <limits.h> |
| 7486 | #if HAVE_STDINT_H |
| 7487 | #include <stdint.h> |
| 7488 | #endif |
| 7489 | #ifdef SIZE_MAX |
| 7490 | Found it |
| 7491 | #endif |
| 7492 | |
| 7493 | _ACEOF |
| 7494 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7495 | $EGREP "Found it" >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7496 | result=yes |
| 7497 | fi |
| 7498 | rm -f conftest* |
| 7499 | |
| 7500 | if test -z "$result"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7501 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 / 10" "res_hi" "#include <stddef.h>"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7502 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7503 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7504 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7505 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7506 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7507 | |
| 7508 | if ac_fn_c_compute_int "$LINENO" "~(size_t)0 % 10" "res_lo" "#include <stddef.h>"; then : |
| 7509 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7510 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7511 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7512 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7513 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7514 | |
| 7515 | if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : |
| 7516 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7517 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7518 | result=? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7519 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7520 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 7521 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7522 | if test "$fits_in_uint" = 1; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7523 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7524 | /* end confdefs.h. */ |
| 7525 | #include <stddef.h> |
| 7526 | extern size_t foo; |
| 7527 | extern unsigned long foo; |
| 7528 | |
| 7529 | int |
| 7530 | main () |
| 7531 | { |
| 7532 | |
| 7533 | ; |
| 7534 | return 0; |
| 7535 | } |
| 7536 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7537 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7538 | fits_in_uint=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7539 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7540 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7541 | fi |
| 7542 | if test -z "$result"; then |
| 7543 | if test "$fits_in_uint" = 1; then |
| 7544 | result="$res_hi$res_lo"U |
| 7545 | else |
| 7546 | result="$res_hi$res_lo"UL |
| 7547 | fi |
| 7548 | else |
| 7549 | result='~(size_t)0' |
| 7550 | fi |
| 7551 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7552 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7553 | $as_echo "$result" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7554 | if test "$result" != yes; then |
| 7555 | |
| 7556 | cat >>confdefs.h <<_ACEOF |
| 7557 | #define SIZE_MAX $result |
| 7558 | _ACEOF |
| 7559 | |
| 7560 | fi |
| 7561 | |
| 7562 | |
| 7563 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7564 | for ac_header in stdint.h |
| 7565 | do : |
| 7566 | ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" |
| 7567 | if test "x$ac_cv_header_stdint_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7568 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7569 | #define HAVE_STDINT_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7570 | _ACEOF |
| 7571 | |
| 7572 | fi |
| 7573 | |
| 7574 | done |
| 7575 | |
| 7576 | |
| 7577 | |
| 7578 | if test "X$prefix" = "XNONE"; then |
| 7579 | acl_final_prefix="$ac_default_prefix" |
| 7580 | else |
| 7581 | acl_final_prefix="$prefix" |
| 7582 | fi |
| 7583 | if test "X$exec_prefix" = "XNONE"; then |
| 7584 | acl_final_exec_prefix='${prefix}' |
| 7585 | else |
| 7586 | acl_final_exec_prefix="$exec_prefix" |
| 7587 | fi |
| 7588 | acl_save_prefix="$prefix" |
| 7589 | prefix="$acl_final_prefix" |
| 7590 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
| 7591 | prefix="$acl_save_prefix" |
| 7592 | |
| 7593 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7594 | # Check whether --with-gnu-ld was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7595 | if test "${with_gnu_ld+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7596 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7597 | else |
| 7598 | with_gnu_ld=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7599 | fi |
| 7600 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7601 | # Prepare PATH_SEPARATOR. |
| 7602 | # The user is always right. |
| 7603 | if test "${PATH_SEPARATOR+set}" != set; then |
| 7604 | echo "#! /bin/sh" >conf$$.sh |
| 7605 | echo "exit 0" >>conf$$.sh |
| 7606 | chmod +x conf$$.sh |
| 7607 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
| 7608 | PATH_SEPARATOR=';' |
| 7609 | else |
| 7610 | PATH_SEPARATOR=: |
| 7611 | fi |
| 7612 | rm -f conf$$.sh |
| 7613 | fi |
| 7614 | ac_prog=ld |
| 7615 | if test "$GCC" = yes; then |
| 7616 | # Check if gcc -print-prog-name=ld gives a path. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7617 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7618 | $as_echo_n "checking for ld used by GCC... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7619 | case $host in |
| 7620 | *-*-mingw*) |
| 7621 | # gcc leaves a trailing carriage return which upsets mingw |
| 7622 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
| 7623 | *) |
| 7624 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
| 7625 | esac |
| 7626 | case $ac_prog in |
| 7627 | # Accept absolute paths. |
| 7628 | [\\/]* | [A-Za-z]:[\\/]*) |
| 7629 | re_direlt='/[^/][^/]*/\.\./' |
| 7630 | # Canonicalize the path of ld |
| 7631 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
| 7632 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
| 7633 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
| 7634 | done |
| 7635 | test -z "$LD" && LD="$ac_prog" |
| 7636 | ;; |
| 7637 | "") |
| 7638 | # If it fails, then pretend we aren't using GCC. |
| 7639 | ac_prog=ld |
| 7640 | ;; |
| 7641 | *) |
| 7642 | # If it is relative, then search for the first ld in PATH. |
| 7643 | with_gnu_ld=unknown |
| 7644 | ;; |
| 7645 | esac |
| 7646 | elif test "$with_gnu_ld" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7647 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7648 | $as_echo_n "checking for GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7649 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7650 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7651 | $as_echo_n "checking for non-GNU ld... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7652 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7653 | if test "${acl_cv_path_LD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7654 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7655 | else |
| 7656 | if test -z "$LD"; then |
| 7657 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
| 7658 | for ac_dir in $PATH; do |
| 7659 | test -z "$ac_dir" && ac_dir=. |
| 7660 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
| 7661 | acl_cv_path_LD="$ac_dir/$ac_prog" |
| 7662 | # Check to see if the program is GNU ld. I'd rather use --version, |
| 7663 | # but apparently some GNU ld's only accept -v. |
| 7664 | # Break only if it was the GNU/non-GNU ld that we prefer. |
| 7665 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
| 7666 | *GNU* | *'with BFD'*) |
| 7667 | test "$with_gnu_ld" != no && break ;; |
| 7668 | *) |
| 7669 | test "$with_gnu_ld" != yes && break ;; |
| 7670 | esac |
| 7671 | fi |
| 7672 | done |
| 7673 | IFS="$ac_save_ifs" |
| 7674 | else |
| 7675 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
| 7676 | fi |
| 7677 | fi |
| 7678 | |
| 7679 | LD="$acl_cv_path_LD" |
| 7680 | if test -n "$LD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7681 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7682 | $as_echo "$LD" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7683 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7684 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7685 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7686 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7687 | test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 |
| 7688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7689 | $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7690 | if test "${acl_cv_prog_gnu_ld+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7691 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7692 | else |
| 7693 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
| 7694 | case `$LD -v 2>&1 </dev/null` in |
| 7695 | *GNU* | *'with BFD'*) |
| 7696 | acl_cv_prog_gnu_ld=yes ;; |
| 7697 | *) |
| 7698 | acl_cv_prog_gnu_ld=no ;; |
| 7699 | esac |
| 7700 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7701 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7702 | $as_echo "$acl_cv_prog_gnu_ld" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7703 | with_gnu_ld=$acl_cv_prog_gnu_ld |
| 7704 | |
| 7705 | |
| 7706 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7707 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7708 | $as_echo_n "checking for shared library run path origin... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7709 | if test "${acl_cv_rpath+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7710 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7711 | else |
| 7712 | |
| 7713 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
| 7714 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
| 7715 | . ./conftest.sh |
| 7716 | rm -f ./conftest.sh |
| 7717 | acl_cv_rpath=done |
| 7718 | |
| 7719 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7720 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 7721 | $as_echo "$acl_cv_rpath" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7722 | wl="$acl_cv_wl" |
| 7723 | libext="$acl_cv_libext" |
| 7724 | shlibext="$acl_cv_shlibext" |
| 7725 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
| 7726 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
| 7727 | hardcode_direct="$acl_cv_hardcode_direct" |
| 7728 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7729 | # Check whether --enable-rpath was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7730 | if test "${enable_rpath+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7731 | enableval=$enable_rpath; : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7732 | else |
| 7733 | enable_rpath=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7734 | fi |
| 7735 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7736 | |
| 7737 | |
| 7738 | |
| 7739 | |
| 7740 | |
| 7741 | |
| 7742 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7743 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7744 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7745 | acl_save_prefix="$prefix" |
| 7746 | prefix="$acl_final_prefix" |
| 7747 | acl_save_exec_prefix="$exec_prefix" |
| 7748 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7749 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7750 | eval additional_includedir=\"$includedir\" |
| 7751 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7752 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7753 | exec_prefix="$acl_save_exec_prefix" |
| 7754 | prefix="$acl_save_prefix" |
| 7755 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7756 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7757 | # Check whether --with-libiconv-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 7758 | if test "${with_libiconv_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7759 | withval=$with_libiconv_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7760 | if test "X$withval" = "Xno"; then |
| 7761 | use_additional=no |
| 7762 | else |
| 7763 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7764 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7765 | acl_save_prefix="$prefix" |
| 7766 | prefix="$acl_final_prefix" |
| 7767 | acl_save_exec_prefix="$exec_prefix" |
| 7768 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7769 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7770 | eval additional_includedir=\"$includedir\" |
| 7771 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7772 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7773 | exec_prefix="$acl_save_exec_prefix" |
| 7774 | prefix="$acl_save_prefix" |
| 7775 | |
| 7776 | else |
| 7777 | additional_includedir="$withval/include" |
| 7778 | additional_libdir="$withval/lib" |
| 7779 | fi |
| 7780 | fi |
| 7781 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 7782 | fi |
| 7783 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7784 | LIBICONV= |
| 7785 | LTLIBICONV= |
| 7786 | INCICONV= |
| 7787 | rpathdirs= |
| 7788 | ltrpathdirs= |
| 7789 | names_already_handled= |
| 7790 | names_next_round='iconv ' |
| 7791 | while test -n "$names_next_round"; do |
| 7792 | names_this_round="$names_next_round" |
| 7793 | names_next_round= |
| 7794 | for name in $names_this_round; do |
| 7795 | already_handled= |
| 7796 | for n in $names_already_handled; do |
| 7797 | if test "$n" = "$name"; then |
| 7798 | already_handled=yes |
| 7799 | break |
| 7800 | fi |
| 7801 | done |
| 7802 | if test -z "$already_handled"; then |
| 7803 | names_already_handled="$names_already_handled $name" |
| 7804 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 7805 | eval value=\"\$HAVE_LIB$uppername\" |
| 7806 | if test -n "$value"; then |
| 7807 | if test "$value" = yes; then |
| 7808 | eval value=\"\$LIB$uppername\" |
| 7809 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
| 7810 | eval value=\"\$LTLIB$uppername\" |
| 7811 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
| 7812 | else |
| 7813 | : |
| 7814 | fi |
| 7815 | else |
| 7816 | found_dir= |
| 7817 | found_la= |
| 7818 | found_so= |
| 7819 | found_a= |
| 7820 | if test $use_additional = yes; then |
| 7821 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 7822 | found_dir="$additional_libdir" |
| 7823 | found_so="$additional_libdir/lib$name.$shlibext" |
| 7824 | if test -f "$additional_libdir/lib$name.la"; then |
| 7825 | found_la="$additional_libdir/lib$name.la" |
| 7826 | fi |
| 7827 | else |
| 7828 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 7829 | found_dir="$additional_libdir" |
| 7830 | found_a="$additional_libdir/lib$name.$libext" |
| 7831 | if test -f "$additional_libdir/lib$name.la"; then |
| 7832 | found_la="$additional_libdir/lib$name.la" |
| 7833 | fi |
| 7834 | fi |
| 7835 | fi |
| 7836 | fi |
| 7837 | if test "X$found_dir" = "X"; then |
| 7838 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7839 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7840 | acl_save_prefix="$prefix" |
| 7841 | prefix="$acl_final_prefix" |
| 7842 | acl_save_exec_prefix="$exec_prefix" |
| 7843 | exec_prefix="$acl_final_exec_prefix" |
| 7844 | eval x=\"$x\" |
| 7845 | exec_prefix="$acl_save_exec_prefix" |
| 7846 | prefix="$acl_save_prefix" |
| 7847 | |
| 7848 | case "$x" in |
| 7849 | -L*) |
| 7850 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 7851 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 7852 | found_dir="$dir" |
| 7853 | found_so="$dir/lib$name.$shlibext" |
| 7854 | if test -f "$dir/lib$name.la"; then |
| 7855 | found_la="$dir/lib$name.la" |
| 7856 | fi |
| 7857 | else |
| 7858 | if test -f "$dir/lib$name.$libext"; then |
| 7859 | found_dir="$dir" |
| 7860 | found_a="$dir/lib$name.$libext" |
| 7861 | if test -f "$dir/lib$name.la"; then |
| 7862 | found_la="$dir/lib$name.la" |
| 7863 | fi |
| 7864 | fi |
| 7865 | fi |
| 7866 | ;; |
| 7867 | esac |
| 7868 | if test "X$found_dir" != "X"; then |
| 7869 | break |
| 7870 | fi |
| 7871 | done |
| 7872 | fi |
| 7873 | if test "X$found_dir" != "X"; then |
| 7874 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
| 7875 | if test "X$found_so" != "X"; then |
| 7876 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 7877 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7878 | else |
| 7879 | haveit= |
| 7880 | for x in $ltrpathdirs; do |
| 7881 | if test "X$x" = "X$found_dir"; then |
| 7882 | haveit=yes |
| 7883 | break |
| 7884 | fi |
| 7885 | done |
| 7886 | if test -z "$haveit"; then |
| 7887 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 7888 | fi |
| 7889 | if test "$hardcode_direct" = yes; then |
| 7890 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7891 | else |
| 7892 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 7893 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7894 | haveit= |
| 7895 | for x in $rpathdirs; do |
| 7896 | if test "X$x" = "X$found_dir"; then |
| 7897 | haveit=yes |
| 7898 | break |
| 7899 | fi |
| 7900 | done |
| 7901 | if test -z "$haveit"; then |
| 7902 | rpathdirs="$rpathdirs $found_dir" |
| 7903 | fi |
| 7904 | else |
| 7905 | haveit= |
| 7906 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7907 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7908 | acl_save_prefix="$prefix" |
| 7909 | prefix="$acl_final_prefix" |
| 7910 | acl_save_exec_prefix="$exec_prefix" |
| 7911 | exec_prefix="$acl_final_exec_prefix" |
| 7912 | eval x=\"$x\" |
| 7913 | exec_prefix="$acl_save_exec_prefix" |
| 7914 | prefix="$acl_save_prefix" |
| 7915 | |
| 7916 | if test "X$x" = "X-L$found_dir"; then |
| 7917 | haveit=yes |
| 7918 | break |
| 7919 | fi |
| 7920 | done |
| 7921 | if test -z "$haveit"; then |
| 7922 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
| 7923 | fi |
| 7924 | if test "$hardcode_minus_L" != no; then |
| 7925 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
| 7926 | else |
| 7927 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 7928 | fi |
| 7929 | fi |
| 7930 | fi |
| 7931 | fi |
| 7932 | else |
| 7933 | if test "X$found_a" != "X"; then |
| 7934 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
| 7935 | else |
| 7936 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
| 7937 | fi |
| 7938 | fi |
| 7939 | additional_includedir= |
| 7940 | case "$found_dir" in |
| 7941 | */lib | */lib/) |
| 7942 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 7943 | additional_includedir="$basedir/include" |
| 7944 | ;; |
| 7945 | esac |
| 7946 | if test "X$additional_includedir" != "X"; then |
| 7947 | if test "X$additional_includedir" != "X/usr/include"; then |
| 7948 | haveit= |
| 7949 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 7950 | if test -n "$GCC"; then |
| 7951 | case $host_os in |
| 7952 | linux*) haveit=yes;; |
| 7953 | esac |
| 7954 | fi |
| 7955 | fi |
| 7956 | if test -z "$haveit"; then |
| 7957 | for x in $CPPFLAGS $INCICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 7958 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 7959 | acl_save_prefix="$prefix" |
| 7960 | prefix="$acl_final_prefix" |
| 7961 | acl_save_exec_prefix="$exec_prefix" |
| 7962 | exec_prefix="$acl_final_exec_prefix" |
| 7963 | eval x=\"$x\" |
| 7964 | exec_prefix="$acl_save_exec_prefix" |
| 7965 | prefix="$acl_save_prefix" |
| 7966 | |
| 7967 | if test "X$x" = "X-I$additional_includedir"; then |
| 7968 | haveit=yes |
| 7969 | break |
| 7970 | fi |
| 7971 | done |
| 7972 | if test -z "$haveit"; then |
| 7973 | if test -d "$additional_includedir"; then |
| 7974 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
| 7975 | fi |
| 7976 | fi |
| 7977 | fi |
| 7978 | fi |
| 7979 | fi |
| 7980 | if test -n "$found_la"; then |
| 7981 | save_libdir="$libdir" |
| 7982 | case "$found_la" in |
| 7983 | */* | *\\*) . "$found_la" ;; |
| 7984 | *) . "./$found_la" ;; |
| 7985 | esac |
| 7986 | libdir="$save_libdir" |
| 7987 | for dep in $dependency_libs; do |
| 7988 | case "$dep" in |
| 7989 | -L*) |
| 7990 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 7991 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 7992 | haveit= |
| 7993 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 7994 | if test -n "$GCC"; then |
| 7995 | case $host_os in |
| 7996 | linux*) haveit=yes;; |
| 7997 | esac |
| 7998 | fi |
| 7999 | fi |
| 8000 | if test -z "$haveit"; then |
| 8001 | haveit= |
| 8002 | for x in $LDFLAGS $LIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8003 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8004 | acl_save_prefix="$prefix" |
| 8005 | prefix="$acl_final_prefix" |
| 8006 | acl_save_exec_prefix="$exec_prefix" |
| 8007 | exec_prefix="$acl_final_exec_prefix" |
| 8008 | eval x=\"$x\" |
| 8009 | exec_prefix="$acl_save_exec_prefix" |
| 8010 | prefix="$acl_save_prefix" |
| 8011 | |
| 8012 | if test "X$x" = "X-L$additional_libdir"; then |
| 8013 | haveit=yes |
| 8014 | break |
| 8015 | fi |
| 8016 | done |
| 8017 | if test -z "$haveit"; then |
| 8018 | if test -d "$additional_libdir"; then |
| 8019 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
| 8020 | fi |
| 8021 | fi |
| 8022 | haveit= |
| 8023 | for x in $LDFLAGS $LTLIBICONV; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8024 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8025 | acl_save_prefix="$prefix" |
| 8026 | prefix="$acl_final_prefix" |
| 8027 | acl_save_exec_prefix="$exec_prefix" |
| 8028 | exec_prefix="$acl_final_exec_prefix" |
| 8029 | eval x=\"$x\" |
| 8030 | exec_prefix="$acl_save_exec_prefix" |
| 8031 | prefix="$acl_save_prefix" |
| 8032 | |
| 8033 | if test "X$x" = "X-L$additional_libdir"; then |
| 8034 | haveit=yes |
| 8035 | break |
| 8036 | fi |
| 8037 | done |
| 8038 | if test -z "$haveit"; then |
| 8039 | if test -d "$additional_libdir"; then |
| 8040 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
| 8041 | fi |
| 8042 | fi |
| 8043 | fi |
| 8044 | fi |
| 8045 | ;; |
| 8046 | -R*) |
| 8047 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 8048 | if test "$enable_rpath" != no; then |
| 8049 | haveit= |
| 8050 | for x in $rpathdirs; do |
| 8051 | if test "X$x" = "X$dir"; then |
| 8052 | haveit=yes |
| 8053 | break |
| 8054 | fi |
| 8055 | done |
| 8056 | if test -z "$haveit"; then |
| 8057 | rpathdirs="$rpathdirs $dir" |
| 8058 | fi |
| 8059 | haveit= |
| 8060 | for x in $ltrpathdirs; do |
| 8061 | if test "X$x" = "X$dir"; then |
| 8062 | haveit=yes |
| 8063 | break |
| 8064 | fi |
| 8065 | done |
| 8066 | if test -z "$haveit"; then |
| 8067 | ltrpathdirs="$ltrpathdirs $dir" |
| 8068 | fi |
| 8069 | fi |
| 8070 | ;; |
| 8071 | -l*) |
| 8072 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 8073 | ;; |
| 8074 | *.la) |
| 8075 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 8076 | ;; |
| 8077 | *) |
| 8078 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
| 8079 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
| 8080 | ;; |
| 8081 | esac |
| 8082 | done |
| 8083 | fi |
| 8084 | else |
| 8085 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
| 8086 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
| 8087 | fi |
| 8088 | fi |
| 8089 | fi |
| 8090 | done |
| 8091 | done |
| 8092 | if test "X$rpathdirs" != "X"; then |
| 8093 | if test -n "$hardcode_libdir_separator"; then |
| 8094 | alldirs= |
| 8095 | for found_dir in $rpathdirs; do |
| 8096 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 8097 | done |
| 8098 | acl_save_libdir="$libdir" |
| 8099 | libdir="$alldirs" |
| 8100 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8101 | libdir="$acl_save_libdir" |
| 8102 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8103 | else |
| 8104 | for found_dir in $rpathdirs; do |
| 8105 | acl_save_libdir="$libdir" |
| 8106 | libdir="$found_dir" |
| 8107 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 8108 | libdir="$acl_save_libdir" |
| 8109 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
| 8110 | done |
| 8111 | fi |
| 8112 | fi |
| 8113 | if test "X$ltrpathdirs" != "X"; then |
| 8114 | for found_dir in $ltrpathdirs; do |
| 8115 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
| 8116 | done |
| 8117 | fi |
| 8118 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8119 | |
| 8120 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8121 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8122 | |
| 8123 | |
| 8124 | |
| 8125 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8126 | ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" |
| 8127 | if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8128 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8129 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8130 | |
| 8131 | $as_echo "#define ptrdiff_t long" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8132 | |
| 8133 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8134 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8135 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8136 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8137 | stdlib.h string.h unistd.h sys/param.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8138 | do : |
| 8139 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 8140 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 8141 | eval as_val=\$$as_ac_Header |
| 8142 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8143 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8144 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8145 | _ACEOF |
| 8146 | |
| 8147 | fi |
| 8148 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8149 | done |
| 8150 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8151 | for ac_func in asprintf fwprintf getcwd getegid geteuid getgid getuid \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8152 | mempcpy munmap putenv setenv setlocale snprintf stpcpy strcasecmp strdup \ |
| 8153 | strtoul tsearch wcslen __argz_count __argz_stringify __argz_next \ |
| 8154 | __fsetlocking |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8155 | do : |
| 8156 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 8157 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 8158 | eval as_val=\$$as_ac_var |
| 8159 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8160 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8161 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8162 | _ACEOF |
| 8163 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8164 | fi |
| 8165 | done |
| 8166 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8167 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8168 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8169 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8170 | $as_echo_n "checking whether _snprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8171 | if test "${ac_cv_have_decl__snprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8172 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8173 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8174 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8175 | /* end confdefs.h. */ |
| 8176 | #include <stdio.h> |
| 8177 | int |
| 8178 | main () |
| 8179 | { |
| 8180 | |
| 8181 | #ifndef _snprintf |
| 8182 | char *p = (char *) _snprintf; |
| 8183 | #endif |
| 8184 | |
| 8185 | ; |
| 8186 | return 0; |
| 8187 | } |
| 8188 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8189 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8190 | ac_cv_have_decl__snprintf=yes |
| 8191 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8192 | ac_cv_have_decl__snprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8193 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8194 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8195 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8197 | $as_echo "$ac_cv_have_decl__snprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8198 | if test $ac_cv_have_decl__snprintf = yes; then |
| 8199 | gt_value=1 |
| 8200 | else |
| 8201 | gt_value=0 |
| 8202 | fi |
| 8203 | |
| 8204 | cat >>confdefs.h <<_ACEOF |
| 8205 | #define HAVE_DECL__SNPRINTF $gt_value |
| 8206 | _ACEOF |
| 8207 | |
| 8208 | |
| 8209 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8210 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8211 | $as_echo_n "checking whether _snwprintf is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8212 | if test "${ac_cv_have_decl__snwprintf+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8213 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8214 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8215 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8216 | /* end confdefs.h. */ |
| 8217 | #include <stdio.h> |
| 8218 | int |
| 8219 | main () |
| 8220 | { |
| 8221 | |
| 8222 | #ifndef _snwprintf |
| 8223 | char *p = (char *) _snwprintf; |
| 8224 | #endif |
| 8225 | |
| 8226 | ; |
| 8227 | return 0; |
| 8228 | } |
| 8229 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8230 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8231 | ac_cv_have_decl__snwprintf=yes |
| 8232 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8233 | ac_cv_have_decl__snwprintf=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8234 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8235 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8236 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8237 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8238 | $as_echo "$ac_cv_have_decl__snwprintf" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8239 | if test $ac_cv_have_decl__snwprintf = yes; then |
| 8240 | gt_value=1 |
| 8241 | else |
| 8242 | gt_value=0 |
| 8243 | fi |
| 8244 | |
| 8245 | cat >>confdefs.h <<_ACEOF |
| 8246 | #define HAVE_DECL__SNWPRINTF $gt_value |
| 8247 | _ACEOF |
| 8248 | |
| 8249 | |
| 8250 | |
| 8251 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8252 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8253 | $as_echo_n "checking whether feof_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8254 | if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8255 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8256 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8257 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8258 | /* end confdefs.h. */ |
| 8259 | #include <stdio.h> |
| 8260 | int |
| 8261 | main () |
| 8262 | { |
| 8263 | |
| 8264 | #ifndef feof_unlocked |
| 8265 | char *p = (char *) feof_unlocked; |
| 8266 | #endif |
| 8267 | |
| 8268 | ; |
| 8269 | return 0; |
| 8270 | } |
| 8271 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8272 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8273 | ac_cv_have_decl_feof_unlocked=yes |
| 8274 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8275 | ac_cv_have_decl_feof_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8276 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8277 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8278 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8279 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8280 | $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8281 | if test $ac_cv_have_decl_feof_unlocked = yes; then |
| 8282 | gt_value=1 |
| 8283 | else |
| 8284 | gt_value=0 |
| 8285 | fi |
| 8286 | |
| 8287 | cat >>confdefs.h <<_ACEOF |
| 8288 | #define HAVE_DECL_FEOF_UNLOCKED $gt_value |
| 8289 | _ACEOF |
| 8290 | |
| 8291 | |
| 8292 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8293 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8294 | $as_echo_n "checking whether fgets_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8295 | if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8296 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8297 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8298 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8299 | /* end confdefs.h. */ |
| 8300 | #include <stdio.h> |
| 8301 | int |
| 8302 | main () |
| 8303 | { |
| 8304 | |
| 8305 | #ifndef fgets_unlocked |
| 8306 | char *p = (char *) fgets_unlocked; |
| 8307 | #endif |
| 8308 | |
| 8309 | ; |
| 8310 | return 0; |
| 8311 | } |
| 8312 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8313 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8314 | ac_cv_have_decl_fgets_unlocked=yes |
| 8315 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8316 | ac_cv_have_decl_fgets_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8317 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8318 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8319 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8320 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8321 | $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8322 | if test $ac_cv_have_decl_fgets_unlocked = yes; then |
| 8323 | gt_value=1 |
| 8324 | else |
| 8325 | gt_value=0 |
| 8326 | fi |
| 8327 | |
| 8328 | cat >>confdefs.h <<_ACEOF |
| 8329 | #define HAVE_DECL_FGETS_UNLOCKED $gt_value |
| 8330 | _ACEOF |
| 8331 | |
| 8332 | |
| 8333 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8334 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8335 | $as_echo_n "checking whether getc_unlocked is declared... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8336 | if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8337 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8338 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8339 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8340 | /* end confdefs.h. */ |
| 8341 | #include <stdio.h> |
| 8342 | int |
| 8343 | main () |
| 8344 | { |
| 8345 | |
| 8346 | #ifndef getc_unlocked |
| 8347 | char *p = (char *) getc_unlocked; |
| 8348 | #endif |
| 8349 | |
| 8350 | ; |
| 8351 | return 0; |
| 8352 | } |
| 8353 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8354 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8355 | ac_cv_have_decl_getc_unlocked=yes |
| 8356 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8357 | ac_cv_have_decl_getc_unlocked=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8358 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8359 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8360 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8362 | $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8363 | if test $ac_cv_have_decl_getc_unlocked = yes; then |
| 8364 | gt_value=1 |
| 8365 | else |
| 8366 | gt_value=0 |
| 8367 | fi |
| 8368 | |
| 8369 | cat >>confdefs.h <<_ACEOF |
| 8370 | #define HAVE_DECL_GETC_UNLOCKED $gt_value |
| 8371 | _ACEOF |
| 8372 | |
| 8373 | |
| 8374 | |
| 8375 | case $gt_cv_func_printf_posix in |
| 8376 | *yes) HAVE_POSIX_PRINTF=1 ;; |
| 8377 | *) HAVE_POSIX_PRINTF=0 ;; |
| 8378 | esac |
| 8379 | |
| 8380 | if test "$ac_cv_func_asprintf" = yes; then |
| 8381 | HAVE_ASPRINTF=1 |
| 8382 | else |
| 8383 | HAVE_ASPRINTF=0 |
| 8384 | fi |
| 8385 | |
| 8386 | if test "$ac_cv_func_snprintf" = yes; then |
| 8387 | HAVE_SNPRINTF=1 |
| 8388 | else |
| 8389 | HAVE_SNPRINTF=0 |
| 8390 | fi |
| 8391 | |
| 8392 | if test "$ac_cv_func_wprintf" = yes; then |
| 8393 | HAVE_WPRINTF=1 |
| 8394 | else |
| 8395 | HAVE_WPRINTF=0 |
| 8396 | fi |
| 8397 | |
| 8398 | |
| 8399 | |
| 8400 | |
| 8401 | |
| 8402 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8403 | |
| 8404 | am_save_CPPFLAGS="$CPPFLAGS" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8405 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8406 | for element in $INCICONV; do |
| 8407 | haveit= |
| 8408 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8409 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8410 | acl_save_prefix="$prefix" |
| 8411 | prefix="$acl_final_prefix" |
| 8412 | acl_save_exec_prefix="$exec_prefix" |
| 8413 | exec_prefix="$acl_final_exec_prefix" |
| 8414 | eval x=\"$x\" |
| 8415 | exec_prefix="$acl_save_exec_prefix" |
| 8416 | prefix="$acl_save_prefix" |
| 8417 | |
| 8418 | if test "X$x" = "X$element"; then |
| 8419 | haveit=yes |
| 8420 | break |
| 8421 | fi |
| 8422 | done |
| 8423 | if test -z "$haveit"; then |
| 8424 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 8425 | fi |
| 8426 | done |
| 8427 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8428 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8429 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8430 | $as_echo_n "checking for iconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8431 | if test "${am_cv_func_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8432 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8433 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8434 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8435 | am_cv_func_iconv="no, consider installing GNU libiconv" |
| 8436 | am_cv_lib_iconv=no |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8437 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8438 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8439 | #include <stdlib.h> |
| 8440 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8441 | int |
| 8442 | main () |
| 8443 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8444 | iconv_t cd = iconv_open("",""); |
| 8445 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8446 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8447 | ; |
| 8448 | return 0; |
| 8449 | } |
| 8450 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8451 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8452 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8453 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8454 | rm -f core conftest.err conftest.$ac_objext \ |
| 8455 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8456 | if test "$am_cv_func_iconv" != yes; then |
| 8457 | am_save_LIBS="$LIBS" |
| 8458 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8459 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8460 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8461 | #include <stdlib.h> |
| 8462 | #include <iconv.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8463 | int |
| 8464 | main () |
| 8465 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8466 | iconv_t cd = iconv_open("",""); |
| 8467 | iconv(cd,NULL,NULL,NULL,NULL); |
| 8468 | iconv_close(cd); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8469 | ; |
| 8470 | return 0; |
| 8471 | } |
| 8472 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8473 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8474 | am_cv_lib_iconv=yes |
| 8475 | am_cv_func_iconv=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8476 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8477 | rm -f core conftest.err conftest.$ac_objext \ |
| 8478 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8479 | LIBS="$am_save_LIBS" |
| 8480 | fi |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 8481 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8482 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8483 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8484 | $as_echo "$am_cv_func_iconv" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8485 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8486 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8487 | $as_echo "#define HAVE_ICONV 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8488 | |
| 8489 | fi |
| 8490 | if test "$am_cv_lib_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8491 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8492 | $as_echo_n "checking how to link with libiconv... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8493 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8494 | $as_echo "$LIBICONV" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8495 | else |
| 8496 | CPPFLAGS="$am_save_CPPFLAGS" |
| 8497 | LIBICONV= |
| 8498 | LTLIBICONV= |
| 8499 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8500 | |
| 8501 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8502 | |
| 8503 | if test "$am_cv_func_iconv" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8505 | $as_echo_n "checking for iconv declaration... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8506 | if test "${am_cv_proto_iconv+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8507 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8508 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8509 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8510 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8511 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8512 | |
| 8513 | #include <stdlib.h> |
| 8514 | #include <iconv.h> |
| 8515 | extern |
| 8516 | #ifdef __cplusplus |
| 8517 | "C" |
| 8518 | #endif |
| 8519 | #if defined(__STDC__) || defined(__cplusplus) |
| 8520 | size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); |
| 8521 | #else |
| 8522 | size_t iconv(); |
| 8523 | #endif |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8524 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8525 | int |
| 8526 | main () |
| 8527 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8528 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8529 | ; |
| 8530 | return 0; |
| 8531 | } |
| 8532 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8533 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8534 | am_cv_proto_iconv_arg1="" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8535 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8536 | am_cv_proto_iconv_arg1="const" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8537 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8538 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8539 | am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8540 | fi |
| 8541 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8542 | am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8543 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:- |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8544 | }$am_cv_proto_iconv" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8545 | $as_echo "${ac_t:- |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8546 | }$am_cv_proto_iconv" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8547 | |
| 8548 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8549 | #define ICONV_CONST $am_cv_proto_iconv_arg1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8550 | _ACEOF |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8551 | |
| 8552 | fi |
| 8553 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8554 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8555 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8556 | $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8557 | if test "${am_cv_langinfo_codeset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8558 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8559 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8560 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8561 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8562 | #include <langinfo.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8563 | int |
| 8564 | main () |
| 8565 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8566 | char* cs = nl_langinfo(CODESET); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8567 | ; |
| 8568 | return 0; |
| 8569 | } |
| 8570 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8571 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8572 | am_cv_langinfo_codeset=yes |
| 8573 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8574 | am_cv_langinfo_codeset=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8575 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8576 | rm -f core conftest.err conftest.$ac_objext \ |
| 8577 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8578 | |
| 8579 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8580 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8581 | $as_echo "$am_cv_langinfo_codeset" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8582 | if test $am_cv_langinfo_codeset = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8583 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8584 | $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8585 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8586 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8587 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8588 | if test $ac_cv_header_locale_h = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8589 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8590 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8591 | $as_echo_n "checking for LC_MESSAGES... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8592 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8593 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8594 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8595 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8596 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8597 | #include <locale.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8598 | int |
| 8599 | main () |
| 8600 | { |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8601 | return LC_MESSAGES |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8602 | ; |
| 8603 | return 0; |
| 8604 | } |
| 8605 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8606 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8607 | am_cv_val_LC_MESSAGES=yes |
| 8608 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8609 | am_cv_val_LC_MESSAGES=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8610 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8611 | rm -f core conftest.err conftest.$ac_objext \ |
| 8612 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8613 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8614 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_val_LC_MESSAGES" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8615 | $as_echo "$am_cv_val_LC_MESSAGES" >&6; } |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8616 | if test $am_cv_val_LC_MESSAGES = yes; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8617 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8618 | $as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8619 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8620 | fi |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8621 | |
| 8622 | fi |
| 8623 | |
| 8624 | for ac_prog in bison |
| 8625 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8626 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8627 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8628 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8629 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8630 | if test "${ac_cv_prog_INTLBISON+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8631 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8632 | else |
| 8633 | if test -n "$INTLBISON"; then |
| 8634 | ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. |
| 8635 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8636 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 8637 | for as_dir in $PATH |
| 8638 | do |
| 8639 | IFS=$as_save_IFS |
| 8640 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8641 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 8642 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8643 | ac_cv_prog_INTLBISON="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8644 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8645 | break 2 |
| 8646 | fi |
| 8647 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8648 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8649 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8650 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8651 | fi |
| 8652 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8653 | INTLBISON=$ac_cv_prog_INTLBISON |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8654 | if test -n "$INTLBISON"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8655 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8656 | $as_echo "$INTLBISON" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8657 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8658 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8659 | $as_echo "no" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8660 | fi |
| 8661 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8662 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8663 | test -n "$INTLBISON" && break |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8664 | done |
| 8665 | |
| 8666 | if test -z "$INTLBISON"; then |
| 8667 | ac_verc_fail=yes |
| 8668 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8669 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8670 | $as_echo_n "checking version of bison... " >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8671 | ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` |
| 8672 | case $ac_prog_version in |
| 8673 | '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; |
| 8674 | 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) |
| 8675 | ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; |
| 8676 | *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; |
| 8677 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8678 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8679 | $as_echo "$ac_prog_version" >&6; } |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8680 | fi |
| 8681 | if test $ac_verc_fail = yes; then |
| 8682 | INTLBISON=: |
| 8683 | fi |
| 8684 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8685 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8686 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8687 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8688 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8689 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8690 | |
| 8691 | |
| 8692 | |
| 8693 | |
| 8694 | |
| 8695 | |
| 8696 | |
| 8697 | |
| 8698 | |
| 8699 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8700 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8701 | $as_echo_n "checking whether NLS is requested... " >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8702 | # Check whether --enable-nls was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8703 | if test "${enable_nls+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8704 | enableval=$enable_nls; USE_NLS=$enableval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8705 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8706 | USE_NLS=yes |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8707 | fi |
| 8708 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8709 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8710 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8711 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 8712 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8713 | |
| 8714 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8715 | BUILD_INCLUDED_LIBINTL=no |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8716 | USE_INCLUDED_LIBINTL=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8717 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8718 | LIBINTL= |
| 8719 | LTLIBINTL= |
| 8720 | POSUB= |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8721 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8722 | if test "$USE_NLS" = "yes"; then |
| 8723 | gt_use_preinstalled_gnugettext=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8724 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8725 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8726 | $as_echo_n "checking whether included gettext is requested... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8727 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8728 | # Check whether --with-included-gettext was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8729 | if test "${with_included_gettext+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8730 | withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8731 | else |
| 8732 | nls_cv_force_use_gnu_gettext=no |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8733 | fi |
| 8734 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8735 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8736 | $as_echo "$nls_cv_force_use_gnu_gettext" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8737 | |
| 8738 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" |
| 8739 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8740 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8741 | |
| 8742 | |
| 8743 | |
| 8744 | |
| 8745 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8746 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8747 | $as_echo_n "checking for GNU gettext in libc... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8748 | if test "${gt_cv_func_gnugettext1_libc+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8749 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8750 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8751 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8752 | /* end confdefs.h. */ |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8753 | #include <libintl.h> |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8754 | extern int _nl_msg_cat_cntr; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8755 | extern int *_nl_domain_bindings; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8756 | int |
| 8757 | main () |
| 8758 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8759 | bindtextdomain ("", ""); |
| 8760 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_domain_bindings |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8761 | ; |
| 8762 | return 0; |
| 8763 | } |
| 8764 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8765 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8766 | gt_cv_func_gnugettext1_libc=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8767 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8768 | gt_cv_func_gnugettext1_libc=no |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8769 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8770 | rm -f core conftest.err conftest.$ac_objext \ |
| 8771 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8772 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8773 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libc" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 8774 | $as_echo "$gt_cv_func_gnugettext1_libc" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8775 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8776 | if test "$gt_cv_func_gnugettext1_libc" != "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8777 | |
| 8778 | |
| 8779 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8780 | use_additional=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8781 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8782 | acl_save_prefix="$prefix" |
| 8783 | prefix="$acl_final_prefix" |
| 8784 | acl_save_exec_prefix="$exec_prefix" |
| 8785 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8786 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8787 | eval additional_includedir=\"$includedir\" |
| 8788 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8789 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8790 | exec_prefix="$acl_save_exec_prefix" |
| 8791 | prefix="$acl_save_prefix" |
| 8792 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8794 | # Check whether --with-libintl-prefix was given. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 8795 | if test "${with_libintl_prefix+set}" = set; then : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8796 | withval=$with_libintl_prefix; |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8797 | if test "X$withval" = "Xno"; then |
| 8798 | use_additional=no |
| 8799 | else |
| 8800 | if test "X$withval" = "X"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8801 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8802 | acl_save_prefix="$prefix" |
| 8803 | prefix="$acl_final_prefix" |
| 8804 | acl_save_exec_prefix="$exec_prefix" |
| 8805 | exec_prefix="$acl_final_exec_prefix" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8806 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8807 | eval additional_includedir=\"$includedir\" |
| 8808 | eval additional_libdir=\"$libdir\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8809 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8810 | exec_prefix="$acl_save_exec_prefix" |
| 8811 | prefix="$acl_save_prefix" |
| 8812 | |
| 8813 | else |
| 8814 | additional_includedir="$withval/include" |
| 8815 | additional_libdir="$withval/lib" |
| 8816 | fi |
| 8817 | fi |
| 8818 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 8819 | fi |
| 8820 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8821 | LIBINTL= |
| 8822 | LTLIBINTL= |
| 8823 | INCINTL= |
| 8824 | rpathdirs= |
| 8825 | ltrpathdirs= |
| 8826 | names_already_handled= |
| 8827 | names_next_round='intl ' |
| 8828 | while test -n "$names_next_round"; do |
| 8829 | names_this_round="$names_next_round" |
| 8830 | names_next_round= |
| 8831 | for name in $names_this_round; do |
| 8832 | already_handled= |
| 8833 | for n in $names_already_handled; do |
| 8834 | if test "$n" = "$name"; then |
| 8835 | already_handled=yes |
| 8836 | break |
| 8837 | fi |
| 8838 | done |
| 8839 | if test -z "$already_handled"; then |
| 8840 | names_already_handled="$names_already_handled $name" |
| 8841 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
| 8842 | eval value=\"\$HAVE_LIB$uppername\" |
| 8843 | if test -n "$value"; then |
| 8844 | if test "$value" = yes; then |
| 8845 | eval value=\"\$LIB$uppername\" |
| 8846 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
| 8847 | eval value=\"\$LTLIB$uppername\" |
| 8848 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
| 8849 | else |
| 8850 | : |
| 8851 | fi |
| 8852 | else |
| 8853 | found_dir= |
| 8854 | found_la= |
| 8855 | found_so= |
| 8856 | found_a= |
| 8857 | if test $use_additional = yes; then |
| 8858 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then |
| 8859 | found_dir="$additional_libdir" |
| 8860 | found_so="$additional_libdir/lib$name.$shlibext" |
| 8861 | if test -f "$additional_libdir/lib$name.la"; then |
| 8862 | found_la="$additional_libdir/lib$name.la" |
| 8863 | fi |
| 8864 | else |
| 8865 | if test -f "$additional_libdir/lib$name.$libext"; then |
| 8866 | found_dir="$additional_libdir" |
| 8867 | found_a="$additional_libdir/lib$name.$libext" |
| 8868 | if test -f "$additional_libdir/lib$name.la"; then |
| 8869 | found_la="$additional_libdir/lib$name.la" |
| 8870 | fi |
| 8871 | fi |
| 8872 | fi |
| 8873 | fi |
| 8874 | if test "X$found_dir" = "X"; then |
| 8875 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8876 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8877 | acl_save_prefix="$prefix" |
| 8878 | prefix="$acl_final_prefix" |
| 8879 | acl_save_exec_prefix="$exec_prefix" |
| 8880 | exec_prefix="$acl_final_exec_prefix" |
| 8881 | eval x=\"$x\" |
| 8882 | exec_prefix="$acl_save_exec_prefix" |
| 8883 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 8884 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8885 | case "$x" in |
| 8886 | -L*) |
| 8887 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
| 8888 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then |
| 8889 | found_dir="$dir" |
| 8890 | found_so="$dir/lib$name.$shlibext" |
| 8891 | if test -f "$dir/lib$name.la"; then |
| 8892 | found_la="$dir/lib$name.la" |
| 8893 | fi |
| 8894 | else |
| 8895 | if test -f "$dir/lib$name.$libext"; then |
| 8896 | found_dir="$dir" |
| 8897 | found_a="$dir/lib$name.$libext" |
| 8898 | if test -f "$dir/lib$name.la"; then |
| 8899 | found_la="$dir/lib$name.la" |
| 8900 | fi |
| 8901 | fi |
| 8902 | fi |
| 8903 | ;; |
| 8904 | esac |
| 8905 | if test "X$found_dir" != "X"; then |
| 8906 | break |
| 8907 | fi |
| 8908 | done |
| 8909 | fi |
| 8910 | if test "X$found_dir" != "X"; then |
| 8911 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
| 8912 | if test "X$found_so" != "X"; then |
| 8913 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then |
| 8914 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8915 | else |
| 8916 | haveit= |
| 8917 | for x in $ltrpathdirs; do |
| 8918 | if test "X$x" = "X$found_dir"; then |
| 8919 | haveit=yes |
| 8920 | break |
| 8921 | fi |
| 8922 | done |
| 8923 | if test -z "$haveit"; then |
| 8924 | ltrpathdirs="$ltrpathdirs $found_dir" |
| 8925 | fi |
| 8926 | if test "$hardcode_direct" = yes; then |
| 8927 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8928 | else |
| 8929 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
| 8930 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8931 | haveit= |
| 8932 | for x in $rpathdirs; do |
| 8933 | if test "X$x" = "X$found_dir"; then |
| 8934 | haveit=yes |
| 8935 | break |
| 8936 | fi |
| 8937 | done |
| 8938 | if test -z "$haveit"; then |
| 8939 | rpathdirs="$rpathdirs $found_dir" |
| 8940 | fi |
| 8941 | else |
| 8942 | haveit= |
| 8943 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8944 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8945 | acl_save_prefix="$prefix" |
| 8946 | prefix="$acl_final_prefix" |
| 8947 | acl_save_exec_prefix="$exec_prefix" |
| 8948 | exec_prefix="$acl_final_exec_prefix" |
| 8949 | eval x=\"$x\" |
| 8950 | exec_prefix="$acl_save_exec_prefix" |
| 8951 | prefix="$acl_save_prefix" |
| 8952 | |
| 8953 | if test "X$x" = "X-L$found_dir"; then |
| 8954 | haveit=yes |
| 8955 | break |
| 8956 | fi |
| 8957 | done |
| 8958 | if test -z "$haveit"; then |
| 8959 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
| 8960 | fi |
| 8961 | if test "$hardcode_minus_L" != no; then |
| 8962 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
| 8963 | else |
| 8964 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 8965 | fi |
| 8966 | fi |
| 8967 | fi |
| 8968 | fi |
| 8969 | else |
| 8970 | if test "X$found_a" != "X"; then |
| 8971 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
| 8972 | else |
| 8973 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
| 8974 | fi |
| 8975 | fi |
| 8976 | additional_includedir= |
| 8977 | case "$found_dir" in |
| 8978 | */lib | */lib/) |
| 8979 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` |
| 8980 | additional_includedir="$basedir/include" |
| 8981 | ;; |
| 8982 | esac |
| 8983 | if test "X$additional_includedir" != "X"; then |
| 8984 | if test "X$additional_includedir" != "X/usr/include"; then |
| 8985 | haveit= |
| 8986 | if test "X$additional_includedir" = "X/usr/local/include"; then |
| 8987 | if test -n "$GCC"; then |
| 8988 | case $host_os in |
| 8989 | linux*) haveit=yes;; |
| 8990 | esac |
| 8991 | fi |
| 8992 | fi |
| 8993 | if test -z "$haveit"; then |
| 8994 | for x in $CPPFLAGS $INCINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 8995 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 8996 | acl_save_prefix="$prefix" |
| 8997 | prefix="$acl_final_prefix" |
| 8998 | acl_save_exec_prefix="$exec_prefix" |
| 8999 | exec_prefix="$acl_final_exec_prefix" |
| 9000 | eval x=\"$x\" |
| 9001 | exec_prefix="$acl_save_exec_prefix" |
| 9002 | prefix="$acl_save_prefix" |
| 9003 | |
| 9004 | if test "X$x" = "X-I$additional_includedir"; then |
| 9005 | haveit=yes |
| 9006 | break |
| 9007 | fi |
| 9008 | done |
| 9009 | if test -z "$haveit"; then |
| 9010 | if test -d "$additional_includedir"; then |
| 9011 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
| 9012 | fi |
| 9013 | fi |
| 9014 | fi |
| 9015 | fi |
| 9016 | fi |
| 9017 | if test -n "$found_la"; then |
| 9018 | save_libdir="$libdir" |
| 9019 | case "$found_la" in |
| 9020 | */* | *\\*) . "$found_la" ;; |
| 9021 | *) . "./$found_la" ;; |
| 9022 | esac |
| 9023 | libdir="$save_libdir" |
| 9024 | for dep in $dependency_libs; do |
| 9025 | case "$dep" in |
| 9026 | -L*) |
| 9027 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
| 9028 | if test "X$additional_libdir" != "X/usr/lib"; then |
| 9029 | haveit= |
| 9030 | if test "X$additional_libdir" = "X/usr/local/lib"; then |
| 9031 | if test -n "$GCC"; then |
| 9032 | case $host_os in |
| 9033 | linux*) haveit=yes;; |
| 9034 | esac |
| 9035 | fi |
| 9036 | fi |
| 9037 | if test -z "$haveit"; then |
| 9038 | haveit= |
| 9039 | for x in $LDFLAGS $LIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9040 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9041 | acl_save_prefix="$prefix" |
| 9042 | prefix="$acl_final_prefix" |
| 9043 | acl_save_exec_prefix="$exec_prefix" |
| 9044 | exec_prefix="$acl_final_exec_prefix" |
| 9045 | eval x=\"$x\" |
| 9046 | exec_prefix="$acl_save_exec_prefix" |
| 9047 | prefix="$acl_save_prefix" |
| 9048 | |
| 9049 | if test "X$x" = "X-L$additional_libdir"; then |
| 9050 | haveit=yes |
| 9051 | break |
| 9052 | fi |
| 9053 | done |
| 9054 | if test -z "$haveit"; then |
| 9055 | if test -d "$additional_libdir"; then |
| 9056 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
| 9057 | fi |
| 9058 | fi |
| 9059 | haveit= |
| 9060 | for x in $LDFLAGS $LTLIBINTL; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9061 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9062 | acl_save_prefix="$prefix" |
| 9063 | prefix="$acl_final_prefix" |
| 9064 | acl_save_exec_prefix="$exec_prefix" |
| 9065 | exec_prefix="$acl_final_exec_prefix" |
| 9066 | eval x=\"$x\" |
| 9067 | exec_prefix="$acl_save_exec_prefix" |
| 9068 | prefix="$acl_save_prefix" |
| 9069 | |
| 9070 | if test "X$x" = "X-L$additional_libdir"; then |
| 9071 | haveit=yes |
| 9072 | break |
| 9073 | fi |
| 9074 | done |
| 9075 | if test -z "$haveit"; then |
| 9076 | if test -d "$additional_libdir"; then |
| 9077 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
| 9078 | fi |
| 9079 | fi |
| 9080 | fi |
| 9081 | fi |
| 9082 | ;; |
| 9083 | -R*) |
| 9084 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
| 9085 | if test "$enable_rpath" != no; then |
| 9086 | haveit= |
| 9087 | for x in $rpathdirs; do |
| 9088 | if test "X$x" = "X$dir"; then |
| 9089 | haveit=yes |
| 9090 | break |
| 9091 | fi |
| 9092 | done |
| 9093 | if test -z "$haveit"; then |
| 9094 | rpathdirs="$rpathdirs $dir" |
| 9095 | fi |
| 9096 | haveit= |
| 9097 | for x in $ltrpathdirs; do |
| 9098 | if test "X$x" = "X$dir"; then |
| 9099 | haveit=yes |
| 9100 | break |
| 9101 | fi |
| 9102 | done |
| 9103 | if test -z "$haveit"; then |
| 9104 | ltrpathdirs="$ltrpathdirs $dir" |
| 9105 | fi |
| 9106 | fi |
| 9107 | ;; |
| 9108 | -l*) |
| 9109 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
| 9110 | ;; |
| 9111 | *.la) |
| 9112 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
| 9113 | ;; |
| 9114 | *) |
| 9115 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
| 9116 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
| 9117 | ;; |
| 9118 | esac |
| 9119 | done |
| 9120 | fi |
| 9121 | else |
| 9122 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
| 9123 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
| 9124 | fi |
| 9125 | fi |
| 9126 | fi |
| 9127 | done |
| 9128 | done |
| 9129 | if test "X$rpathdirs" != "X"; then |
| 9130 | if test -n "$hardcode_libdir_separator"; then |
| 9131 | alldirs= |
| 9132 | for found_dir in $rpathdirs; do |
| 9133 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
| 9134 | done |
| 9135 | acl_save_libdir="$libdir" |
| 9136 | libdir="$alldirs" |
| 9137 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9138 | libdir="$acl_save_libdir" |
| 9139 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9140 | else |
| 9141 | for found_dir in $rpathdirs; do |
| 9142 | acl_save_libdir="$libdir" |
| 9143 | libdir="$found_dir" |
| 9144 | eval flag=\"$hardcode_libdir_flag_spec\" |
| 9145 | libdir="$acl_save_libdir" |
| 9146 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
| 9147 | done |
| 9148 | fi |
| 9149 | fi |
| 9150 | if test "X$ltrpathdirs" != "X"; then |
| 9151 | for found_dir in $ltrpathdirs; do |
| 9152 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
| 9153 | done |
| 9154 | fi |
| 9155 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9156 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9157 | $as_echo_n "checking for GNU gettext in libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9158 | if test "${gt_cv_func_gnugettext1_libintl+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9159 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9160 | else |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9161 | gt_save_CPPFLAGS="$CPPFLAGS" |
| 9162 | CPPFLAGS="$CPPFLAGS $INCINTL" |
| 9163 | gt_save_LIBS="$LIBS" |
| 9164 | LIBS="$LIBS $LIBINTL" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9165 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9166 | /* end confdefs.h. */ |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9167 | #include <libintl.h> |
| 9168 | extern int _nl_msg_cat_cntr; |
| 9169 | extern |
| 9170 | #ifdef __cplusplus |
| 9171 | "C" |
| 9172 | #endif |
| 9173 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9174 | int |
| 9175 | main () |
| 9176 | { |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9177 | bindtextdomain ("", ""); |
| 9178 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9179 | ; |
| 9180 | return 0; |
| 9181 | } |
| 9182 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9183 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9184 | gt_cv_func_gnugettext1_libintl=yes |
| 9185 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9186 | gt_cv_func_gnugettext1_libintl=no |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9187 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9188 | rm -f core conftest.err conftest.$ac_objext \ |
| 9189 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | 2b5901d | 2004-11-19 17:06:47 -0500 | [diff] [blame] | 9190 | if test "$gt_cv_func_gnugettext1_libintl" != yes && test -n "$LIBICONV"; then |
| 9191 | LIBS="$LIBS $LIBICONV" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9192 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9193 | /* end confdefs.h. */ |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9194 | #include <libintl.h> |
| 9195 | extern int _nl_msg_cat_cntr; |
| 9196 | extern |
| 9197 | #ifdef __cplusplus |
| 9198 | "C" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9199 | #endif |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9200 | const char *_nl_expand_alias (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9201 | int |
| 9202 | main () |
| 9203 | { |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9204 | bindtextdomain ("", ""); |
| 9205 | return (int) gettext ("") + _nl_msg_cat_cntr + *_nl_expand_alias (0) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9206 | ; |
| 9207 | return 0; |
| 9208 | } |
| 9209 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9210 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9211 | LIBINTL="$LIBINTL $LIBICONV" |
| 9212 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
| 9213 | gt_cv_func_gnugettext1_libintl=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9214 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9215 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9216 | rm -f core conftest.err conftest.$ac_objext \ |
| 9217 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9218 | fi |
| 9219 | CPPFLAGS="$gt_save_CPPFLAGS" |
| 9220 | LIBS="$gt_save_LIBS" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9221 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9222 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_gnugettext1_libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9223 | $as_echo "$gt_cv_func_gnugettext1_libintl" >&6; } |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9224 | fi |
| 9225 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9226 | if test "$gt_cv_func_gnugettext1_libc" = "yes" \ |
| 9227 | || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9228 | && test "$PACKAGE" != gettext-runtime \ |
| 9229 | && test "$PACKAGE" != gettext-tools; }; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9230 | gt_use_preinstalled_gnugettext=yes |
| 9231 | else |
| 9232 | LIBINTL= |
| 9233 | LTLIBINTL= |
| 9234 | INCINTL= |
| 9235 | fi |
| 9236 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9237 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9238 | if test "$gt_use_preinstalled_gnugettext" != "yes"; then |
| 9239 | nls_cv_use_gnu_gettext=yes |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9240 | fi |
| 9241 | fi |
| 9242 | |
| 9243 | if test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9244 | BUILD_INCLUDED_LIBINTL=yes |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9245 | USE_INCLUDED_LIBINTL=yes |
| 9246 | LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV" |
| 9247 | LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV" |
| 9248 | LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9249 | fi |
| 9250 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9251 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9252 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
| 9253 | CATOBJEXT=.gmo |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9254 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9255 | |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9256 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9257 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
| 9258 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9259 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9260 | $as_echo "#define ENABLE_NLS 1" >>confdefs.h |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9261 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9262 | else |
| 9263 | USE_NLS=no |
| 9264 | fi |
| 9265 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9266 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9268 | $as_echo_n "checking whether to use NLS... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9269 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9270 | $as_echo "$USE_NLS" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9271 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9272 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9273 | $as_echo_n "checking where the gettext function comes from... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9274 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9275 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
| 9276 | gt_source="external libintl" |
| 9277 | else |
| 9278 | gt_source="libc" |
| 9279 | fi |
| 9280 | else |
| 9281 | gt_source="included intl directory" |
| 9282 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9283 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9284 | $as_echo "$gt_source" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9285 | fi |
| 9286 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9287 | if test "$USE_NLS" = "yes"; then |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9288 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9289 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
| 9290 | if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9291 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9292 | $as_echo_n "checking how to link with libintl... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9293 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9294 | $as_echo "$LIBINTL" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9295 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9296 | for element in $INCINTL; do |
| 9297 | haveit= |
| 9298 | for x in $CPPFLAGS; do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9299 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9300 | acl_save_prefix="$prefix" |
| 9301 | prefix="$acl_final_prefix" |
| 9302 | acl_save_exec_prefix="$exec_prefix" |
| 9303 | exec_prefix="$acl_final_exec_prefix" |
| 9304 | eval x=\"$x\" |
| 9305 | exec_prefix="$acl_save_exec_prefix" |
| 9306 | prefix="$acl_save_prefix" |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9307 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9308 | if test "X$x" = "X$element"; then |
| 9309 | haveit=yes |
| 9310 | break |
| 9311 | fi |
| 9312 | done |
| 9313 | if test -z "$haveit"; then |
| 9314 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
| 9315 | fi |
| 9316 | done |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9317 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9318 | fi |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 9319 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9320 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9321 | $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9322 | |
| 9323 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9324 | $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9325 | |
| 9326 | fi |
| 9327 | |
| 9328 | POSUB=po |
| 9329 | fi |
| 9330 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9331 | |
| 9332 | if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9333 | BUILD_INCLUDED_LIBINTL=yes |
| 9334 | fi |
| 9335 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9336 | |
| 9337 | |
| 9338 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9339 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9340 | nls_cv_header_intl= |
| 9341 | nls_cv_header_libgt= |
| 9342 | |
| 9343 | DATADIRNAME=share |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9344 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9345 | |
| 9346 | INSTOBJEXT=.mo |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9347 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9348 | |
| 9349 | GENCAT=gencat |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9350 | |
| 9351 | |
| 9352 | if test "$USE_INCLUDED_LIBINTL" = yes; then |
| 9353 | INTLOBJS="\$(GETTOBJS)" |
| 9354 | fi |
| 9355 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9356 | |
| 9357 | INTL_LIBTOOL_SUFFIX_PREFIX= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9358 | |
| 9359 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 9360 | |
| 9361 | INTLLIBS="$LIBINTL" |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 9362 | |
| 9363 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9364 | |
| 9365 | |
| 9366 | |
| 9367 | |
| 9368 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9369 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9370 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } |
| 9371 | set x ${MAKE-make} |
| 9372 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9373 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9374 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9375 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9376 | cat >conftest.make <<\_ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9377 | SHELL = /bin/sh |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9378 | all: |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9379 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9380 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9381 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9382 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
| 9383 | *@@@%%%=?*=@@@%%%*) |
| 9384 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
| 9385 | *) |
| 9386 | eval ac_cv_prog_make_${ac_make}_set=no;; |
| 9387 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9388 | rm -f conftest.make |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9389 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9390 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9391 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9392 | $as_echo "yes" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9393 | SET_MAKE= |
| 9394 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9395 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9396 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9397 | SET_MAKE="MAKE=${MAKE-make}" |
| 9398 | fi |
| 9399 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9401 | $as_echo_n "checking for GNU make... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9402 | if test "${_cv_gnu_make_command+set}" = set; then : |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9403 | $as_echo_n "(cached) " >&6 |
| 9404 | else |
| 9405 | _cv_gnu_make_command='' ; |
| 9406 | for a in "$MAKE" make gmake gnumake ; do |
| 9407 | if test -z "$a" ; then continue ; fi ; |
| 9408 | if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null ) ; then |
| 9409 | _cv_gnu_make_command=$a ; |
| 9410 | break; |
| 9411 | fi |
| 9412 | done ; |
| 9413 | |
| 9414 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9415 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cv_gnu_make_command" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9416 | $as_echo "$_cv_gnu_make_command" >&6; } ; |
| 9417 | if test "x$_cv_gnu_make_command" != "x" ; then |
| 9418 | ifGNUmake='' ; |
| 9419 | ifNotGNUmake='#' ; |
| 9420 | else |
| 9421 | ifGNUmake='#' ; |
| 9422 | ifNotGNUmake='' ; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9423 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5 |
Theodore Ts'o | bcb915b | 2009-07-02 18:19:10 -0400 | [diff] [blame] | 9424 | $as_echo "\"Not found\"" >&6; }; |
| 9425 | fi |
| 9426 | |
| 9427 | |
| 9428 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9429 | # Extract the first word of "ln", so it can be a program name with args. |
| 9430 | set dummy ln; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9431 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9432 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9433 | if test "${ac_cv_path_LN+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9434 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9435 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9436 | case $LN in |
| 9437 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9438 | ac_cv_path_LN="$LN" # Let the user override the test with a path. |
| 9439 | ;; |
| 9440 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9441 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9442 | for as_dir in $PATH |
| 9443 | do |
| 9444 | IFS=$as_save_IFS |
| 9445 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9446 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9447 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9448 | ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9449 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9450 | break 2 |
| 9451 | fi |
| 9452 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9453 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9454 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9455 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9456 | test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln" |
| 9457 | ;; |
| 9458 | esac |
| 9459 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9460 | LN=$ac_cv_path_LN |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9461 | if test -n "$LN"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9462 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9463 | $as_echo "$LN" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9464 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9465 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9466 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9467 | fi |
| 9468 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9469 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9470 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9471 | $as_echo_n "checking whether ln -s works... " >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9472 | LN_S=$as_ln_s |
| 9473 | if test "$LN_S" = "ln -s"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9474 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9475 | $as_echo "yes" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9476 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9477 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9478 | $as_echo "no, using $LN_S" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 9479 | fi |
| 9480 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9481 | # Extract the first word of "mv", so it can be a program name with args. |
| 9482 | set dummy mv; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9483 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9484 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9485 | if test "${ac_cv_path_MV+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9486 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9487 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9488 | case $MV in |
| 9489 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9490 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
| 9491 | ;; |
| 9492 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9493 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9494 | for as_dir in $PATH |
| 9495 | do |
| 9496 | IFS=$as_save_IFS |
| 9497 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9498 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9499 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9500 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9501 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9502 | break 2 |
| 9503 | fi |
| 9504 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9505 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9506 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9507 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9508 | test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv" |
| 9509 | ;; |
| 9510 | esac |
| 9511 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9512 | MV=$ac_cv_path_MV |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9513 | if test -n "$MV"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9514 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9515 | $as_echo "$MV" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9516 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9517 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9518 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9519 | fi |
| 9520 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9521 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9522 | # Extract the first word of "cp", so it can be a program name with args. |
| 9523 | set dummy cp; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9524 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9525 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9526 | if test "${ac_cv_path_CP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9527 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9528 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9529 | case $CP in |
| 9530 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9531 | ac_cv_path_CP="$CP" # Let the user override the test with a path. |
| 9532 | ;; |
| 9533 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9535 | for as_dir in $PATH |
| 9536 | do |
| 9537 | IFS=$as_save_IFS |
| 9538 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9539 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9541 | ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9542 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9543 | break 2 |
| 9544 | fi |
| 9545 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9546 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9547 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9548 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9549 | test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" |
| 9550 | ;; |
| 9551 | esac |
| 9552 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9553 | CP=$ac_cv_path_CP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9554 | if test -n "$CP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9555 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9556 | $as_echo "$CP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9557 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9558 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9559 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9560 | fi |
| 9561 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9562 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9563 | # Extract the first word of "rm", so it can be a program name with args. |
| 9564 | set dummy rm; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9565 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9566 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9567 | if test "${ac_cv_path_RM+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9568 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9569 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9570 | case $RM in |
| 9571 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9572 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
| 9573 | ;; |
| 9574 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9575 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9576 | for as_dir in $PATH |
| 9577 | do |
| 9578 | IFS=$as_save_IFS |
| 9579 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9580 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9581 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9582 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9583 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9584 | break 2 |
| 9585 | fi |
| 9586 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9587 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9588 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9589 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9590 | test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm" |
| 9591 | ;; |
| 9592 | esac |
| 9593 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9594 | RM=$ac_cv_path_RM |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9595 | if test -n "$RM"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9596 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9597 | $as_echo "$RM" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9598 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9599 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9600 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9601 | fi |
| 9602 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9603 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9604 | # Extract the first word of "chmod", so it can be a program name with args. |
| 9605 | set dummy chmod; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9606 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9607 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9608 | if test "${ac_cv_path_CHMOD+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9609 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9610 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9611 | case $CHMOD in |
| 9612 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9613 | ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. |
| 9614 | ;; |
| 9615 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9616 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9617 | for as_dir in $PATH |
| 9618 | do |
| 9619 | IFS=$as_save_IFS |
| 9620 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9621 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9622 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9623 | ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9624 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9625 | break 2 |
| 9626 | fi |
| 9627 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9628 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9629 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9630 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9631 | test -z "$ac_cv_path_CHMOD" && ac_cv_path_CHMOD=":" |
| 9632 | ;; |
| 9633 | esac |
| 9634 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9635 | CHMOD=$ac_cv_path_CHMOD |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9636 | if test -n "$CHMOD"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9637 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9638 | $as_echo "$CHMOD" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9639 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9640 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9641 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9642 | fi |
| 9643 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9644 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9645 | for ac_prog in gawk mawk nawk awk |
| 9646 | do |
| 9647 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
| 9648 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9649 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9650 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9651 | if test "${ac_cv_prog_AWK+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9652 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9653 | else |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9654 | if test -n "$AWK"; then |
| 9655 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
| 9656 | else |
| 9657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9658 | for as_dir in $PATH |
| 9659 | do |
| 9660 | IFS=$as_save_IFS |
| 9661 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9662 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9664 | ac_cv_prog_AWK="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9665 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9666 | break 2 |
| 9667 | fi |
| 9668 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9669 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9670 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9671 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9672 | fi |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9673 | fi |
| 9674 | AWK=$ac_cv_prog_AWK |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9675 | if test -n "$AWK"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9676 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9677 | $as_echo "$AWK" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9678 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9679 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9680 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9681 | fi |
| 9682 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9683 | |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9684 | test -n "$AWK" && break |
| 9685 | done |
| 9686 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9687 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9688 | $as_echo_n "checking for egrep... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9689 | if test "${ac_cv_path_EGREP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9690 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9691 | else |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9692 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
| 9693 | then ac_cv_path_EGREP="$GREP -E" |
| 9694 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9695 | if test -z "$EGREP"; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9696 | ac_path_EGREP_found=false |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9697 | # Loop through the user's path and test for each of PROGNAME-LIST |
| 9698 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9699 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
| 9700 | do |
| 9701 | IFS=$as_save_IFS |
| 9702 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9703 | for ac_prog in egrep; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9704 | for ac_exec_ext in '' $ac_executable_extensions; do |
| 9705 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
| 9706 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
| 9707 | # Check for GNU ac_path_EGREP and select it if it is found. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9708 | # Check for GNU $ac_path_EGREP |
| 9709 | case `"$ac_path_EGREP" --version 2>&1` in |
| 9710 | *GNU*) |
| 9711 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
| 9712 | *) |
| 9713 | ac_count=0 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9714 | $as_echo_n 0123456789 >"conftest.in" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9715 | while : |
| 9716 | do |
| 9717 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
| 9718 | mv "conftest.tmp" "conftest.in" |
| 9719 | cp "conftest.in" "conftest.nl" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9720 | $as_echo 'EGREP' >> "conftest.nl" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9721 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
| 9722 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9723 | as_fn_arith $ac_count + 1 && ac_count=$as_val |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9724 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
| 9725 | # Best one so far, save it but keep looking for a better one |
| 9726 | ac_cv_path_EGREP="$ac_path_EGREP" |
| 9727 | ac_path_EGREP_max=$ac_count |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9728 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9729 | # 10*(2^10) chars as input seems more than enough |
| 9730 | test $ac_count -gt 10 && break |
| 9731 | done |
| 9732 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
| 9733 | esac |
| 9734 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9735 | $ac_path_EGREP_found && break 3 |
| 9736 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9737 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9738 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9739 | IFS=$as_save_IFS |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9740 | if test -z "$ac_cv_path_EGREP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9741 | as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9742 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9743 | else |
| 9744 | ac_cv_path_EGREP=$EGREP |
| 9745 | fi |
| 9746 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9747 | fi |
| 9748 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9749 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9750 | $as_echo "$ac_cv_path_EGREP" >&6; } |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9751 | EGREP="$ac_cv_path_EGREP" |
Theodore Ts'o | 3223701 | 2005-01-17 19:13:39 -0500 | [diff] [blame] | 9752 | |
| 9753 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9754 | # Extract the first word of "sed", so it can be a program name with args. |
| 9755 | set dummy sed; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9756 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9757 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9758 | if test "${ac_cv_path_SED+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9759 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9760 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9761 | case $SED in |
| 9762 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9763 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
| 9764 | ;; |
| 9765 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9766 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9767 | for as_dir in $PATH |
| 9768 | do |
| 9769 | IFS=$as_save_IFS |
| 9770 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9771 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9772 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9773 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9774 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9775 | break 2 |
| 9776 | fi |
| 9777 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9778 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9779 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9780 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9781 | test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed" |
| 9782 | ;; |
| 9783 | esac |
| 9784 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9785 | SED=$ac_cv_path_SED |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9786 | if test -n "$SED"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9787 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9788 | $as_echo "$SED" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9789 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9790 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9791 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9792 | fi |
| 9793 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9794 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9795 | # Extract the first word of "perl", so it can be a program name with args. |
| 9796 | set dummy perl; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9797 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9798 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9799 | if test "${ac_cv_path_PERL+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9800 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9801 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9802 | case $PERL in |
| 9803 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9804 | ac_cv_path_PERL="$PERL" # Let the user override the test with a path. |
| 9805 | ;; |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9806 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9808 | for as_dir in $PATH |
| 9809 | do |
| 9810 | IFS=$as_save_IFS |
| 9811 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9812 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9814 | ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9815 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9816 | break 2 |
| 9817 | fi |
| 9818 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9819 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9820 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9821 | |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9822 | test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl" |
| 9823 | ;; |
| 9824 | esac |
| 9825 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9826 | PERL=$ac_cv_path_PERL |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9827 | if test -n "$PERL"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9828 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9829 | $as_echo "$PERL" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9830 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9832 | $as_echo "no" >&6; } |
Theodore Ts'o | 9d564f7 | 1999-07-03 20:25:58 +0000 | [diff] [blame] | 9833 | fi |
| 9834 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9835 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9836 | # Extract the first word of "ldconfig", so it can be a program name with args. |
| 9837 | set dummy ldconfig; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9838 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9839 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9840 | if test "${ac_cv_path_LDCONFIG+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9841 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9842 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9843 | case $LDCONFIG in |
| 9844 | [\\/]* | ?:[\\/]*) |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9845 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
| 9846 | ;; |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9847 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9848 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9849 | for as_dir in $PATH |
| 9850 | do |
| 9851 | IFS=$as_save_IFS |
| 9852 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9853 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9854 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9855 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9856 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9857 | break 2 |
| 9858 | fi |
| 9859 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9860 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9861 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9862 | |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9863 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG=":" |
| 9864 | ;; |
| 9865 | esac |
| 9866 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9867 | LDCONFIG=$ac_cv_path_LDCONFIG |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9868 | if test -n "$LDCONFIG"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9869 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDCONFIG" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9870 | $as_echo "$LDCONFIG" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9871 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9872 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9873 | $as_echo "no" >&6; } |
Theodore Ts'o | 250f79f | 2001-05-19 22:02:22 +0000 | [diff] [blame] | 9874 | fi |
| 9875 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9876 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9877 | if test -n "$ac_tool_prefix"; then |
| 9878 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9879 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9880 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9881 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9882 | if test "${ac_cv_prog_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9883 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9884 | else |
| 9885 | if test -n "$AR"; then |
| 9886 | ac_cv_prog_AR="$AR" # Let the user override the test. |
| 9887 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9888 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9889 | for as_dir in $PATH |
| 9890 | do |
| 9891 | IFS=$as_save_IFS |
| 9892 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9893 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9894 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9895 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9896 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9897 | break 2 |
| 9898 | fi |
| 9899 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9900 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9901 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9902 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9903 | fi |
| 9904 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9905 | AR=$ac_cv_prog_AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9906 | if test -n "$AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9907 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9908 | $as_echo "$AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9909 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9910 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9911 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9912 | fi |
| 9913 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9914 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9915 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9916 | if test -z "$ac_cv_prog_AR"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9917 | ac_ct_AR=$AR |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9918 | # Extract the first word of "ar", so it can be a program name with args. |
| 9919 | set dummy ar; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9920 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9921 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9922 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9923 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9924 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9925 | if test -n "$ac_ct_AR"; then |
| 9926 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9927 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9928 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9929 | for as_dir in $PATH |
| 9930 | do |
| 9931 | IFS=$as_save_IFS |
| 9932 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9933 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9934 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9935 | ac_cv_prog_ac_ct_AR="ar" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9936 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9937 | break 2 |
| 9938 | fi |
| 9939 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9940 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9941 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9942 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9943 | fi |
| 9944 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9945 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
| 9946 | if test -n "$ac_ct_AR"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9947 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9948 | $as_echo "$ac_ct_AR" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9949 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9950 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9951 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9952 | fi |
| 9953 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9954 | if test "x$ac_ct_AR" = x; then |
| 9955 | AR="ar" |
| 9956 | else |
| 9957 | case $cross_compiling:$ac_tool_warned in |
| 9958 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9959 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9960 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9961 | ac_tool_warned=yes ;; |
| 9962 | esac |
| 9963 | AR=$ac_ct_AR |
| 9964 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9965 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9966 | AR="$ac_cv_prog_AR" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9967 | fi |
| 9968 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9969 | if test -n "$ac_tool_prefix"; then |
| 9970 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9971 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9972 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9973 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9974 | if test "${ac_cv_prog_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 9975 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9976 | else |
| 9977 | if test -n "$RANLIB"; then |
| 9978 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
| 9979 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 9981 | for as_dir in $PATH |
| 9982 | do |
| 9983 | IFS=$as_save_IFS |
| 9984 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9985 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 9986 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9987 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9988 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9989 | break 2 |
| 9990 | fi |
| 9991 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9992 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 9993 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9994 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9995 | fi |
| 9996 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 9997 | RANLIB=$ac_cv_prog_RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 9998 | if test -n "$RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 9999 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10000 | $as_echo "$RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10001 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10002 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10003 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10004 | fi |
| 10005 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10006 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10007 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10008 | if test -z "$ac_cv_prog_RANLIB"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10009 | ac_ct_RANLIB=$RANLIB |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10010 | # Extract the first word of "ranlib", so it can be a program name with args. |
| 10011 | set dummy ranlib; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10012 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10013 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10014 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10015 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10016 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10017 | if test -n "$ac_ct_RANLIB"; then |
| 10018 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10019 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10020 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10021 | for as_dir in $PATH |
| 10022 | do |
| 10023 | IFS=$as_save_IFS |
| 10024 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10025 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10026 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10027 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10028 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10029 | break 2 |
| 10030 | fi |
| 10031 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10032 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10033 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10034 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10035 | fi |
| 10036 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10037 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
| 10038 | if test -n "$ac_ct_RANLIB"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10039 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10040 | $as_echo "$ac_ct_RANLIB" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10041 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10042 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10043 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10044 | fi |
| 10045 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10046 | if test "x$ac_ct_RANLIB" = x; then |
| 10047 | RANLIB=":" |
| 10048 | else |
| 10049 | case $cross_compiling:$ac_tool_warned in |
| 10050 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10051 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10052 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10053 | ac_tool_warned=yes ;; |
| 10054 | esac |
| 10055 | RANLIB=$ac_ct_RANLIB |
| 10056 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10057 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10058 | RANLIB="$ac_cv_prog_RANLIB" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10059 | fi |
| 10060 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10061 | if test -n "$ac_tool_prefix"; then |
| 10062 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10063 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10064 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10065 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10066 | if test "${ac_cv_prog_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10067 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10068 | else |
| 10069 | if test -n "$STRIP"; then |
| 10070 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
| 10071 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10072 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10073 | for as_dir in $PATH |
| 10074 | do |
| 10075 | IFS=$as_save_IFS |
| 10076 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10077 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10078 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10079 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10080 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10081 | break 2 |
| 10082 | fi |
| 10083 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10084 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10085 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10086 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10087 | fi |
| 10088 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10089 | STRIP=$ac_cv_prog_STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10090 | if test -n "$STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10091 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10092 | $as_echo "$STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10093 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10094 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10095 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10096 | fi |
| 10097 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10098 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10099 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10100 | if test -z "$ac_cv_prog_STRIP"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10101 | ac_ct_STRIP=$STRIP |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10102 | # Extract the first word of "strip", so it can be a program name with args. |
| 10103 | set dummy strip; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10104 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10105 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10106 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10107 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10108 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10109 | if test -n "$ac_ct_STRIP"; then |
| 10110 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10111 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10112 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10113 | for as_dir in $PATH |
| 10114 | do |
| 10115 | IFS=$as_save_IFS |
| 10116 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10117 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10118 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10119 | ac_cv_prog_ac_ct_STRIP="strip" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10120 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10121 | break 2 |
| 10122 | fi |
| 10123 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10124 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10125 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10126 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10127 | fi |
| 10128 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10129 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
| 10130 | if test -n "$ac_ct_STRIP"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10131 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10132 | $as_echo "$ac_ct_STRIP" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10133 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10134 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10135 | $as_echo "no" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10136 | fi |
| 10137 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10138 | if test "x$ac_ct_STRIP" = x; then |
| 10139 | STRIP=":" |
| 10140 | else |
| 10141 | case $cross_compiling:$ac_tool_warned in |
| 10142 | yes:) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10143 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10144 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10145 | ac_tool_warned=yes ;; |
| 10146 | esac |
| 10147 | STRIP=$ac_ct_STRIP |
| 10148 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10149 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10150 | STRIP="$ac_cv_prog_STRIP" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10151 | fi |
| 10152 | |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10153 | # Extract the first word of "makeinfo", so it can be a program name with args. |
| 10154 | set dummy makeinfo; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10155 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10156 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10157 | if test "${ac_cv_prog_MAKEINFO+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10158 | $as_echo_n "(cached) " >&6 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10159 | else |
| 10160 | if test -n "$MAKEINFO"; then |
| 10161 | ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. |
| 10162 | else |
| 10163 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10164 | for as_dir in $PATH |
| 10165 | do |
| 10166 | IFS=$as_save_IFS |
| 10167 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10168 | for ac_exec_ext in '' $ac_executable_extensions; do |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10169 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
| 10170 | ac_cv_prog_MAKEINFO="makeinfo" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10171 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10172 | break 2 |
| 10173 | fi |
| 10174 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10175 | done |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10176 | IFS=$as_save_IFS |
| 10177 | |
| 10178 | fi |
| 10179 | fi |
| 10180 | MAKEINFO=$ac_cv_prog_MAKEINFO |
| 10181 | if test -n "$MAKEINFO"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10182 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10183 | $as_echo "$MAKEINFO" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10184 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10185 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10186 | $as_echo "no" >&6; } |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10187 | fi |
| 10188 | |
| 10189 | |
| 10190 | if test "_$MAKEINFO" = "_"; then |
| 10191 | MAKEINFO="@echo Makeinfo is missing. Info documentation will not be built.;true" |
| 10192 | else |
| 10193 | case "$MAKEINFO" in |
| 10194 | */missing.*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10195 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10196 | *** Makeinfo is missing. Info documentation will not be built." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10197 | $as_echo "$as_me: WARNING: |
Manish Katiyar | 7321d94 | 2008-04-14 17:20:03 +0530 | [diff] [blame] | 10198 | *** Makeinfo is missing. Info documentation will not be built." >&2;} |
| 10199 | ;; |
| 10200 | *) |
| 10201 | ;; |
| 10202 | esac |
| 10203 | fi |
| 10204 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10205 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10206 | # See if we need a separate native compiler. |
| 10207 | if test $cross_compiling = no; then |
| 10208 | BUILD_CC="$CC" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10209 | |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10210 | else |
| 10211 | for ac_prog in gcc cc |
| 10212 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10213 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10214 | set dummy $ac_prog; ac_word=$2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10215 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10216 | $as_echo_n "checking for $ac_word... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10217 | if test "${ac_cv_prog_BUILD_CC+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10218 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 6c13352 | 1999-07-03 20:37:03 +0000 | [diff] [blame] | 10219 | else |
| 10220 | if test -n "$BUILD_CC"; then |
| 10221 | ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test. |
| 10222 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
| 10224 | for as_dir in $PATH |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10225 | do |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10226 | IFS=$as_save_IFS |
| 10227 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10228 | for ac_exec_ext in '' $ac_executable_extensions; do |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10229 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10230 | ac_cv_prog_BUILD_CC="$ac_prog" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10231 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10232 | break 2 |
| 10233 | fi |
| 10234 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10235 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10236 | IFS=$as_save_IFS |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10237 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10238 | fi |
| 10239 | fi |
| 10240 | BUILD_CC=$ac_cv_prog_BUILD_CC |
| 10241 | if test -n "$BUILD_CC"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10242 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10243 | $as_echo "$BUILD_CC" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10244 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10245 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10246 | $as_echo "no" >&6; } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10247 | fi |
| 10248 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10249 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10250 | test -n "$BUILD_CC" && break |
| 10251 | done |
| 10252 | |
| 10253 | fi |
Theodore Ts'o | edbfd75 | 2011-10-04 11:20:50 -0400 | [diff] [blame] | 10254 | for ac_header in dirent.h errno.h execinfo.h getopt.h malloc.h mntent.h paths.h semaphore.h setjmp.h signal.h stdarg.h stdint.h stdlib.h termios.h termio.h unistd.h utime.h linux/falloc.h linux/fd.h linux/major.h net/if_dl.h netinet/in.h sys/disklabel.h sys/file.h sys/ioctl.h sys/mkdev.h sys/mman.h sys/prctl.h sys/queue.h sys/quota.h sys/resource.h sys/select.h sys/socket.h sys/sockio.h sys/stat.h sys/syscall.h sys/sysmacros.h sys/time.h sys/types.h sys/un.h sys/wait.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10255 | do : |
| 10256 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10257 | ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" |
| 10258 | eval as_val=\$$as_ac_Header |
| 10259 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10260 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10261 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10262 | _ACEOF |
| 10263 | |
| 10264 | fi |
| 10265 | |
| 10266 | done |
| 10267 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10268 | for ac_header in sys/disk.h sys/mount.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10269 | do : |
| 10270 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
| 10271 | ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10272 | #if HAVE_SYS_QUEUE_H |
| 10273 | #include <sys/queue.h> |
| 10274 | #endif |
| 10275 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10276 | " |
| 10277 | eval as_val=\$$as_ac_Header |
| 10278 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10279 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10280 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10281 | _ACEOF |
| 10282 | |
| 10283 | fi |
| 10284 | |
| 10285 | done |
| 10286 | |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10287 | for ac_header in net/if.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10288 | do : |
| 10289 | ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" " |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10290 | #if HAVE_SYS_TYPES_H |
| 10291 | #include <sys/types.h> |
| 10292 | #endif |
| 10293 | #if HAVE_SYS_SOCKET |
| 10294 | #include <sys/socket.h> |
| 10295 | #endif |
| 10296 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10297 | " |
| 10298 | if test "x$ac_cv_header_net_if_h" = x""yes; then : |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10299 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10300 | #define HAVE_NET_IF_H 1 |
Theodore Ts'o | da76d6b | 2005-01-18 23:29:01 -0500 | [diff] [blame] | 10301 | _ACEOF |
| 10302 | |
| 10303 | fi |
| 10304 | |
| 10305 | done |
| 10306 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10307 | for ac_func in vprintf |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10308 | do : |
| 10309 | ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf" |
| 10310 | if test "x$ac_cv_func_vprintf" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10311 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10312 | #define HAVE_VPRINTF 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10313 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10314 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10315 | ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt" |
| 10316 | if test "x$ac_cv_func__doprnt" = x""yes; then : |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10317 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10318 | $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10319 | |
| 10320 | fi |
| 10321 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10322 | fi |
| 10323 | done |
| 10324 | |
| 10325 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10326 | ac_fn_c_check_member "$LINENO" "struct dirent" "d_reclen" "ac_cv_member_struct_dirent_d_reclen" "#include <dirent.h> |
| 10327 | " |
| 10328 | if test "x$ac_cv_member_struct_dirent_d_reclen" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10329 | |
| 10330 | $as_echo "#define HAVE_RECLEN_DIRENT 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10331 | |
| 10332 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10333 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10334 | ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "#include <sys/types.h> |
| 10335 | " |
| 10336 | if test "x$ac_cv_type_ssize_t" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10337 | |
| 10338 | $as_echo "#define HAVE_TYPE_SSIZE_T 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10339 | |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10340 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10341 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10342 | ac_fn_c_check_decl "$LINENO" "llseek" "ac_cv_have_decl_llseek" "#include <unistd.h> |
| 10343 | " |
| 10344 | if test "x$ac_cv_have_decl_llseek" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10345 | |
| 10346 | $as_echo "#define HAVE_LLSEEK_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 10347 | |
| 10348 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10349 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10350 | ac_fn_c_check_decl "$LINENO" "lseek64" "ac_cv_have_decl_lseek64" "#define _LARGEFILE_SOURCE |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10351 | #define _LARGEFILE64_SOURCE |
| 10352 | #include <unistd.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10353 | " |
| 10354 | if test "x$ac_cv_have_decl_lseek64" = x""yes; then : |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10355 | |
| 10356 | $as_echo "#define HAVE_LSEEK64_PROTOTYPE 1" >>confdefs.h |
Theodore Ts'o | 6928adc | 2000-05-25 23:28:50 +0000 | [diff] [blame] | 10357 | |
| 10358 | fi |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10359 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10360 | # The cast to long int works around a bug in the HP C Compiler |
| 10361 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10362 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10363 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10364 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10365 | $as_echo_n "checking size of short... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10366 | if test "${ac_cv_sizeof_short+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10367 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10368 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10369 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10370 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10371 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10372 | if test "$ac_cv_type_short" = yes; then |
| 10373 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10374 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10375 | { as_fn_set_status 77 |
| 10376 | as_fn_error "cannot compute sizeof (short) |
| 10377 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10378 | else |
| 10379 | ac_cv_sizeof_short=0 |
| 10380 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10381 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10382 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10383 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10384 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10385 | $as_echo "$ac_cv_sizeof_short" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10386 | |
| 10387 | |
| 10388 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10389 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10390 | #define SIZEOF_SHORT $ac_cv_sizeof_short |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10391 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10392 | |
| 10393 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10394 | # The cast to long int works around a bug in the HP C Compiler |
| 10395 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10396 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10397 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10398 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10399 | $as_echo_n "checking size of int... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10400 | if test "${ac_cv_sizeof_int+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10401 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10402 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10403 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10404 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10405 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10406 | if test "$ac_cv_type_int" = yes; then |
| 10407 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10408 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10409 | { as_fn_set_status 77 |
| 10410 | as_fn_error "cannot compute sizeof (int) |
| 10411 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10412 | else |
| 10413 | ac_cv_sizeof_int=0 |
| 10414 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10415 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10416 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10417 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10418 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10419 | $as_echo "$ac_cv_sizeof_int" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10420 | |
| 10421 | |
| 10422 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10423 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10424 | #define SIZEOF_INT $ac_cv_sizeof_int |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10425 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10426 | |
| 10427 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10428 | # The cast to long int works around a bug in the HP C Compiler |
| 10429 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10430 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10431 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10432 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10433 | $as_echo_n "checking size of long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10434 | if test "${ac_cv_sizeof_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10435 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10436 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10437 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10438 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10439 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10440 | if test "$ac_cv_type_long" = yes; then |
| 10441 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10442 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10443 | { as_fn_set_status 77 |
| 10444 | as_fn_error "cannot compute sizeof (long) |
| 10445 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10446 | else |
| 10447 | ac_cv_sizeof_long=0 |
| 10448 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10449 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10450 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10451 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10452 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10453 | $as_echo "$ac_cv_sizeof_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10454 | |
| 10455 | |
| 10456 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10457 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10458 | #define SIZEOF_LONG $ac_cv_sizeof_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10459 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10460 | |
| 10461 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10462 | # The cast to long int works around a bug in the HP C Compiler |
| 10463 | # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects |
| 10464 | # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. |
| 10465 | # This bug is HP SR number 8606223364. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10466 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10467 | $as_echo_n "checking size of long long... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10468 | if test "${ac_cv_sizeof_long_long+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10469 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10470 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10471 | if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10472 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10473 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10474 | if test "$ac_cv_type_long_long" = yes; then |
| 10475 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10476 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10477 | { as_fn_set_status 77 |
| 10478 | as_fn_error "cannot compute sizeof (long long) |
| 10479 | See \`config.log' for more details." "$LINENO" 5; }; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10480 | else |
| 10481 | ac_cv_sizeof_long_long=0 |
| 10482 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10483 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10484 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10485 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10486 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10487 | $as_echo "$ac_cv_sizeof_long_long" >&6; } |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10488 | |
| 10489 | |
| 10490 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10491 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10492 | #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10493 | _ACEOF |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10494 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10495 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10496 | SIZEOF_SHORT=$ac_cv_sizeof_short |
| 10497 | SIZEOF_INT=$ac_cv_sizeof_int |
| 10498 | SIZEOF_LONG=$ac_cv_sizeof_long |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10499 | SIZEOF_LONG_LONG=$ac_cv_sizeof_long_long |
| 10500 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10501 | |
| 10502 | |
| 10503 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10505 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10506 | if test "${ac_cv_c_bigendian+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10507 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10508 | else |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10509 | ac_cv_c_bigendian=unknown |
| 10510 | # See if we're dealing with a universal compiler. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10511 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10512 | /* end confdefs.h. */ |
| 10513 | #ifndef __APPLE_CC__ |
| 10514 | not a universal capable compiler |
| 10515 | #endif |
| 10516 | typedef int dummy; |
| 10517 | |
| 10518 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10519 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10520 | |
| 10521 | # Check for potential -arch flags. It is not universal unless |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10522 | # there are at least two -arch flags with different values. |
| 10523 | ac_arch= |
| 10524 | ac_prev= |
| 10525 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do |
| 10526 | if test -n "$ac_prev"; then |
| 10527 | case $ac_word in |
| 10528 | i?86 | x86_64 | ppc | ppc64) |
| 10529 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then |
| 10530 | ac_arch=$ac_word |
| 10531 | else |
| 10532 | ac_cv_c_bigendian=universal |
| 10533 | break |
| 10534 | fi |
| 10535 | ;; |
| 10536 | esac |
| 10537 | ac_prev= |
| 10538 | elif test "x$ac_word" = "x-arch"; then |
| 10539 | ac_prev=arch |
| 10540 | fi |
| 10541 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10542 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10543 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10544 | if test $ac_cv_c_bigendian = unknown; then |
| 10545 | # See if sys/param.h defines the BYTE_ORDER macro. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10546 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10547 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10548 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10549 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10550 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10551 | int |
| 10552 | main () |
| 10553 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10554 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ |
| 10555 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ |
| 10556 | && LITTLE_ENDIAN) |
| 10557 | bogus endian macros |
| 10558 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10559 | |
| 10560 | ; |
| 10561 | return 0; |
| 10562 | } |
| 10563 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10564 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10565 | # It does; now see whether it defined to BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10566 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10567 | /* end confdefs.h. */ |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10568 | #include <sys/types.h> |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10569 | #include <sys/param.h> |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10570 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10571 | int |
| 10572 | main () |
| 10573 | { |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10574 | #if BYTE_ORDER != BIG_ENDIAN |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10575 | not big endian |
| 10576 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10577 | |
| 10578 | ; |
| 10579 | return 0; |
| 10580 | } |
| 10581 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10582 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10583 | ac_cv_c_bigendian=yes |
| 10584 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10585 | ac_cv_c_bigendian=no |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10586 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10587 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10588 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10589 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10590 | fi |
| 10591 | if test $ac_cv_c_bigendian = unknown; then |
| 10592 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10593 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10594 | /* end confdefs.h. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10595 | #include <limits.h> |
| 10596 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10597 | int |
| 10598 | main () |
| 10599 | { |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10600 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) |
| 10601 | bogus endian macros |
| 10602 | #endif |
| 10603 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10604 | ; |
| 10605 | return 0; |
| 10606 | } |
| 10607 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10608 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10609 | # It does; now see whether it defined to _BIG_ENDIAN or not. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10610 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10611 | /* end confdefs.h. */ |
| 10612 | #include <limits.h> |
| 10613 | |
| 10614 | int |
| 10615 | main () |
| 10616 | { |
| 10617 | #ifndef _BIG_ENDIAN |
| 10618 | not big endian |
| 10619 | #endif |
| 10620 | |
| 10621 | ; |
| 10622 | return 0; |
| 10623 | } |
| 10624 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10625 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10626 | ac_cv_c_bigendian=yes |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10627 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10628 | ac_cv_c_bigendian=no |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10629 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10630 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10631 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10632 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10633 | fi |
| 10634 | if test $ac_cv_c_bigendian = unknown; then |
| 10635 | # Compile a test program. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10636 | if test "$cross_compiling" = yes; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10637 | # Try to guess by grepping values from an object file. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10638 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10639 | /* end confdefs.h. */ |
| 10640 | short int ascii_mm[] = |
| 10641 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
| 10642 | short int ascii_ii[] = |
| 10643 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
| 10644 | int use_ascii (int i) { |
| 10645 | return ascii_mm[i] + ascii_ii[i]; |
| 10646 | } |
| 10647 | short int ebcdic_ii[] = |
| 10648 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
| 10649 | short int ebcdic_mm[] = |
| 10650 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
| 10651 | int use_ebcdic (int i) { |
| 10652 | return ebcdic_mm[i] + ebcdic_ii[i]; |
| 10653 | } |
| 10654 | extern int foo; |
| 10655 | |
| 10656 | int |
| 10657 | main () |
| 10658 | { |
| 10659 | return use_ascii (foo) == use_ebcdic (foo); |
| 10660 | ; |
| 10661 | return 0; |
| 10662 | } |
| 10663 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10664 | if ac_fn_c_try_compile "$LINENO"; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10665 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then |
| 10666 | ac_cv_c_bigendian=yes |
| 10667 | fi |
| 10668 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
| 10669 | if test "$ac_cv_c_bigendian" = unknown; then |
| 10670 | ac_cv_c_bigendian=no |
| 10671 | else |
| 10672 | # finding both strings is unlikely to happen, but who knows? |
| 10673 | ac_cv_c_bigendian=unknown |
| 10674 | fi |
| 10675 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10676 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10677 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10678 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10679 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10680 | /* end confdefs.h. */ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10681 | $ac_includes_default |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10682 | int |
| 10683 | main () |
| 10684 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10685 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10686 | /* Are we little or big endian? From Harbison&Steele. */ |
| 10687 | union |
| 10688 | { |
| 10689 | long int l; |
| 10690 | char c[sizeof (long int)]; |
| 10691 | } u; |
| 10692 | u.l = 1; |
| 10693 | return u.c[sizeof (long int) - 1] == 1; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10694 | |
| 10695 | ; |
| 10696 | return 0; |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10697 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10698 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10699 | if ac_fn_c_try_run "$LINENO"; then : |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10700 | ac_cv_c_bigendian=no |
| 10701 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10702 | ac_cv_c_bigendian=yes |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10703 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10704 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ |
| 10705 | conftest.$ac_objext conftest.beam conftest.$ac_ext |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10706 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10707 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10708 | fi |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10709 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10710 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10711 | $as_echo "$ac_cv_c_bigendian" >&6; } |
| 10712 | case $ac_cv_c_bigendian in #( |
| 10713 | yes) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10714 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10715 | ;; #( |
| 10716 | no) |
| 10717 | ;; #( |
| 10718 | universal) |
| 10719 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10720 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10721 | |
| 10722 | ;; #( |
| 10723 | *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10724 | as_fn_error "unknown endianness |
| 10725 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10726 | esac |
Theodore Ts'o | 877eb6d | 2001-06-11 06:54:13 +0000 | [diff] [blame] | 10727 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 10728 | BUILD_CC="$BUILD_CC" CPP="$CPP" /bin/sh $ac_aux_dir/parse-types.sh |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 10729 | ASM_TYPES_HEADER=./asm_types.h |
| 10730 | |
Theodore Ts'o | 488c75a | 2008-06-07 08:55:21 -0400 | [diff] [blame] | 10731 | echo "/* These defines are needed for the public ext2fs.h header file */" \ |
| 10732 | > public_config.h |
| 10733 | if grep HAVE_SYS_TYPES_H confdefs.h > tmp_config.$$; then |
| 10734 | uniq tmp_config.$$ >> public_config.h |
| 10735 | else |
| 10736 | echo "#undef HAVE_SYS_TYPES_H" >> public_config.h |
| 10737 | fi |
| 10738 | if grep WORDS_BIGENDIAN confdefs.h > tmp_config.$$; then |
| 10739 | uniq tmp_config.$$ >> public_config.h |
| 10740 | else |
| 10741 | echo "#undef WORDS_BIGENDIAN" >> public_config.h |
| 10742 | fi |
| 10743 | rm -f tmp_config.$$ |
| 10744 | PUBLIC_CONFIG_HEADER=./public_config.h |
| 10745 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10746 | for ac_header in inttypes.h |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10747 | do : |
| 10748 | ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" |
| 10749 | if test "x$ac_cv_header_inttypes_h" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10750 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10751 | #define HAVE_INTTYPES_H 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10752 | _ACEOF |
| 10753 | |
| 10754 | fi |
| 10755 | |
Theodore Ts'o | 0c193f8 | 2003-08-01 14:26:23 -0400 | [diff] [blame] | 10756 | done |
| 10757 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10758 | ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" |
| 10759 | if test "x$ac_cv_type_intptr_t" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10760 | |
| 10761 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10762 | #define HAVE_INTPTR_T 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10763 | _ACEOF |
| 10764 | |
Theodore Ts'o | d2ee56d | 2005-01-09 00:57:45 -0500 | [diff] [blame] | 10765 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10766 | fi |
| 10767 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10768 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct stat has a st_flags field" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10769 | $as_echo_n "checking whether struct stat has a st_flags field... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10770 | if test "${e2fsprogs_cv_struct_st_flags+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10771 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10772 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10773 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10774 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10775 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10776 | int |
| 10777 | main () |
| 10778 | { |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10779 | struct stat stat; stat.st_flags = 0; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10780 | ; |
| 10781 | return 0; |
| 10782 | } |
| 10783 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10784 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10785 | e2fsprogs_cv_struct_st_flags=yes |
| 10786 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10787 | e2fsprogs_cv_struct_st_flags=no |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10788 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10789 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10790 | fi |
| 10791 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10792 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10793 | $as_echo "$e2fsprogs_cv_struct_st_flags" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10794 | if test "$e2fsprogs_cv_struct_st_flags" = yes; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10795 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether st_flags field is useful" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10796 | $as_echo_n "checking whether st_flags field is useful... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10797 | if test "${e2fsprogs_cv_struct_st_flags_immut+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10798 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10799 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10800 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10801 | /* end confdefs.h. */ |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10802 | #include <sys/stat.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10803 | int |
| 10804 | main () |
| 10805 | { |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10806 | struct stat stat; stat.st_flags |= UF_IMMUTABLE; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10807 | ; |
| 10808 | return 0; |
| 10809 | } |
| 10810 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10811 | if ac_fn_c_try_compile "$LINENO"; then : |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10812 | e2fsprogs_cv_struct_st_flags_immut=yes |
| 10813 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10814 | e2fsprogs_cv_struct_st_flags_immut=no |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10815 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10816 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
| 10817 | fi |
| 10818 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $e2fsprogs_cv_struct_st_flags_immut" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10820 | $as_echo "$e2fsprogs_cv_struct_st_flags_immut" >&6; } |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10821 | if test "$e2fsprogs_cv_struct_st_flags_immut" = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10822 | |
| 10823 | $as_echo "#define HAVE_STAT_FLAGS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10824 | |
Theodore Ts'o | c03bc4e | 1999-10-20 18:20:36 +0000 | [diff] [blame] | 10825 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10826 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10827 | ac_fn_c_check_member "$LINENO" "struct sockaddr" "sa_len" "ac_cv_member_struct_sockaddr_sa_len" "#include <sys/types.h> |
Theodore Ts'o | 6c65d25 | 2005-01-19 12:59:48 -0500 | [diff] [blame] | 10828 | #include <sys/socket.h> |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10829 | " |
| 10830 | if test "x$ac_cv_member_struct_sockaddr_sa_len" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10831 | |
| 10832 | cat >>confdefs.h <<_ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10833 | #define HAVE_SA_LEN 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10834 | _ACEOF |
Theodore Ts'o | 84ea6e7 | 2004-03-19 19:29:17 -0500 | [diff] [blame] | 10835 | |
| 10836 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10837 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10838 | if test -n "$BLKID_CMT"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10839 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10840 | $as_echo_n "checking for library containing blkid_probe_all... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10841 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10842 | $as_echo_n "(cached) " >&6 |
| 10843 | else |
| 10844 | ac_func_search_save_LIBS=$LIBS |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10845 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10846 | /* end confdefs.h. */ |
| 10847 | |
| 10848 | /* Override any GCC internal prototype to avoid an error. |
| 10849 | Use char because int might match the return type of a GCC |
| 10850 | builtin and then its argument prototype would still apply. */ |
| 10851 | #ifdef __cplusplus |
| 10852 | extern "C" |
| 10853 | #endif |
| 10854 | char blkid_probe_all (); |
| 10855 | int |
| 10856 | main () |
| 10857 | { |
| 10858 | return blkid_probe_all (); |
| 10859 | ; |
| 10860 | return 0; |
| 10861 | } |
| 10862 | _ACEOF |
| 10863 | for ac_lib in '' blkid; do |
| 10864 | if test -z "$ac_lib"; then |
| 10865 | ac_res="none required" |
| 10866 | else |
| 10867 | ac_res=-l$ac_lib |
| 10868 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
| 10869 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10870 | if ac_fn_c_try_link "$LINENO"; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10871 | ac_cv_search_blkid_probe_all=$ac_res |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10872 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10873 | rm -f core conftest.err conftest.$ac_objext \ |
| 10874 | conftest$ac_exeext |
| 10875 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10876 | break |
| 10877 | fi |
| 10878 | done |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10879 | if test "${ac_cv_search_blkid_probe_all+set}" = set; then : |
| 10880 | |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10881 | else |
| 10882 | ac_cv_search_blkid_probe_all=no |
| 10883 | fi |
| 10884 | rm conftest.$ac_ext |
| 10885 | LIBS=$ac_func_search_save_LIBS |
| 10886 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10887 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_blkid_probe_all" >&5 |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10888 | $as_echo "$ac_cv_search_blkid_probe_all" >&6; } |
| 10889 | ac_res=$ac_cv_search_blkid_probe_all |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10890 | if test "$ac_res" != no; then : |
Eric Sandeen | 9ed8e5f | 2009-10-02 11:32:42 -0500 | [diff] [blame] | 10891 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
| 10892 | |
| 10893 | fi |
| 10894 | |
| 10895 | fi |
Theodore Ts'o | edbfd75 | 2011-10-04 11:20:50 -0400 | [diff] [blame] | 10896 | for ac_func in chflags getrusage llseek lseek64 open64 fstat64 ftruncate64 getmntinfo strtoull strcasecmp srandom jrand48 fchown mallinfo fdatasync quotactl strnlen strptime strdup sysconf pathconf posix_memalign memalign valloc __secure_getenv prctl mmap utime setresuid setresgid usleep nanosleep getdtablesize getrlimit sync_file_range posix_fadvise fallocate fallocate64 blkid_probe_get_topology mbstowcs backtrace |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10897 | do : |
| 10898 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` |
| 10899 | ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" |
| 10900 | eval as_val=\$$as_ac_var |
| 10901 | if test "x$as_val" = x""yes; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10902 | cat >>confdefs.h <<_ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10903 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10904 | _ACEOF |
| 10905 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10906 | fi |
| 10907 | done |
| 10908 | |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10909 | SOCKET_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10910 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10911 | $as_echo_n "checking for socket in -lsocket... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10912 | if test "${ac_cv_lib_socket_socket+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10913 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10914 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10915 | ac_check_lib_save_LIBS=$LIBS |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10916 | LIBS="-lsocket $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10917 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10918 | /* end confdefs.h. */ |
| 10919 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10920 | /* Override any GCC internal prototype to avoid an error. |
| 10921 | Use char because int might match the return type of a GCC |
| 10922 | builtin and then its argument prototype would still apply. */ |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10923 | #ifdef __cplusplus |
| 10924 | extern "C" |
| 10925 | #endif |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10926 | char socket (); |
| 10927 | int |
| 10928 | main () |
| 10929 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 10930 | return socket (); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10931 | ; |
| 10932 | return 0; |
| 10933 | } |
| 10934 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10935 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10936 | ac_cv_lib_socket_socket=yes |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10937 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10938 | ac_cv_lib_socket_socket=no |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10939 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10940 | rm -f core conftest.err conftest.$ac_objext \ |
| 10941 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10942 | LIBS=$ac_check_lib_save_LIBS |
| 10943 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10944 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10945 | $as_echo "$ac_cv_lib_socket_socket" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10946 | if test "x$ac_cv_lib_socket_socket" = x""yes; then : |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10947 | SOCKET_LIB=-lsocket |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 10948 | fi |
| 10949 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 10950 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10951 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10952 | $as_echo_n "checking for optreset... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10953 | if test "${ac_cv_have_optreset+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10954 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10955 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10956 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10957 | /* end confdefs.h. */ |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10958 | #include <unistd.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 10959 | |
| 10960 | _ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10961 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10962 | $EGREP "optreset" >/dev/null 2>&1; then : |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10963 | ac_cv_have_optreset=yes |
| 10964 | else |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10965 | ac_cv_have_optreset=no |
| 10966 | fi |
| 10967 | rm -f conftest* |
| 10968 | |
| 10969 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10970 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_optreset" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10971 | $as_echo "$ac_cv_have_optreset" >&6; } |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10972 | if test $ac_cv_have_optreset = yes; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10973 | |
| 10974 | $as_echo "#define HAVE_OPTRESET 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 10975 | |
| 10976 | fi |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 10977 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10978 | SEM_INIT_LIB='' |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10979 | ac_fn_c_check_func "$LINENO" "sem_init" "ac_cv_func_sem_init" |
| 10980 | if test "x$ac_cv_func_sem_init" = x""yes; then : |
| 10981 | |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10982 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10983 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lpthread" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10984 | $as_echo_n "checking for sem_init in -lpthread... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10985 | if test "${ac_cv_lib_pthread_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 10986 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10987 | else |
| 10988 | ac_check_lib_save_LIBS=$LIBS |
| 10989 | LIBS="-lpthread $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 10990 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 10991 | /* end confdefs.h. */ |
| 10992 | |
| 10993 | /* Override any GCC internal prototype to avoid an error. |
| 10994 | Use char because int might match the return type of a GCC |
| 10995 | builtin and then its argument prototype would still apply. */ |
| 10996 | #ifdef __cplusplus |
| 10997 | extern "C" |
| 10998 | #endif |
| 10999 | char sem_init (); |
| 11000 | int |
| 11001 | main () |
| 11002 | { |
| 11003 | return sem_init (); |
| 11004 | ; |
| 11005 | return 0; |
| 11006 | } |
| 11007 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11008 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11009 | ac_cv_lib_pthread_sem_init=yes |
| 11010 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11011 | ac_cv_lib_pthread_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11012 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11013 | rm -f core conftest.err conftest.$ac_objext \ |
| 11014 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11015 | LIBS=$ac_check_lib_save_LIBS |
| 11016 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11017 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11018 | $as_echo "$ac_cv_lib_pthread_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11019 | if test "x$ac_cv_lib_pthread_sem_init" = x""yes; then : |
| 11020 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11021 | |
| 11022 | SEM_INIT_LIB=-lpthread |
| 11023 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lrt" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11025 | $as_echo_n "checking for sem_init in -lrt... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11026 | if test "${ac_cv_lib_rt_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11027 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11028 | else |
| 11029 | ac_check_lib_save_LIBS=$LIBS |
| 11030 | LIBS="-lrt $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11031 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11032 | /* end confdefs.h. */ |
| 11033 | |
| 11034 | /* Override any GCC internal prototype to avoid an error. |
| 11035 | Use char because int might match the return type of a GCC |
| 11036 | builtin and then its argument prototype would still apply. */ |
| 11037 | #ifdef __cplusplus |
| 11038 | extern "C" |
| 11039 | #endif |
| 11040 | char sem_init (); |
| 11041 | int |
| 11042 | main () |
| 11043 | { |
| 11044 | return sem_init (); |
| 11045 | ; |
| 11046 | return 0; |
| 11047 | } |
| 11048 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11049 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11050 | ac_cv_lib_rt_sem_init=yes |
| 11051 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11052 | ac_cv_lib_rt_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11053 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11054 | rm -f core conftest.err conftest.$ac_objext \ |
| 11055 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11056 | LIBS=$ac_check_lib_save_LIBS |
| 11057 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11058 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11059 | $as_echo "$ac_cv_lib_rt_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11060 | if test "x$ac_cv_lib_rt_sem_init" = x""yes; then : |
| 11061 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11062 | |
| 11063 | SEM_INIT_LIB=-lrt |
| 11064 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11065 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sem_init in -lposix4" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11066 | $as_echo_n "checking for sem_init in -lposix4... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11067 | if test "${ac_cv_lib_posix4_sem_init+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11068 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11069 | else |
| 11070 | ac_check_lib_save_LIBS=$LIBS |
| 11071 | LIBS="-lposix4 $LIBS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11072 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11073 | /* end confdefs.h. */ |
| 11074 | |
| 11075 | /* Override any GCC internal prototype to avoid an error. |
| 11076 | Use char because int might match the return type of a GCC |
| 11077 | builtin and then its argument prototype would still apply. */ |
| 11078 | #ifdef __cplusplus |
| 11079 | extern "C" |
| 11080 | #endif |
| 11081 | char sem_init (); |
| 11082 | int |
| 11083 | main () |
| 11084 | { |
| 11085 | return sem_init (); |
| 11086 | ; |
| 11087 | return 0; |
| 11088 | } |
| 11089 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11090 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11091 | ac_cv_lib_posix4_sem_init=yes |
| 11092 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11093 | ac_cv_lib_posix4_sem_init=no |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11094 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11095 | rm -f core conftest.err conftest.$ac_objext \ |
| 11096 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11097 | LIBS=$ac_check_lib_save_LIBS |
| 11098 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11099 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_sem_init" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11100 | $as_echo "$ac_cv_lib_posix4_sem_init" >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11101 | if test "x$ac_cv_lib_posix4_sem_init" = x""yes; then : |
| 11102 | $as_echo "#define HAVE_SEM_INIT 1" >>confdefs.h |
Theodore Ts'o | d7f45af | 2008-09-12 10:15:26 -0400 | [diff] [blame] | 11103 | |
| 11104 | SEM_INIT_LIB=-lposix4 |
| 11105 | fi |
| 11106 | |
| 11107 | fi |
| 11108 | |
| 11109 | fi |
| 11110 | |
| 11111 | fi |
| 11112 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11113 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unified diff option" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11114 | $as_echo_n "checking for unified diff option... " >&6; } |
Theodore Ts'o | 27f991b | 2008-04-01 20:32:55 -0400 | [diff] [blame] | 11115 | if diff -u $0 $0 > /dev/null 2>&1 ; then |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11116 | UNI_DIFF_OPTS=-u |
| 11117 | else |
| 11118 | UNI_DIFF_OPTS=-c |
| 11119 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11120 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNI_DIFF_OPTS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11121 | $as_echo "$UNI_DIFF_OPTS" >&6; } |
Theodore Ts'o | e54635d | 2006-08-06 14:33:13 -0400 | [diff] [blame] | 11122 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11123 | case "$host_os" in |
| 11124 | linux*) |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11125 | |
| 11126 | $as_echo "#define HAVE_EXT2_IOCTLS 1" >>confdefs.h |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11127 | |
Theodore Ts'o | 8f3f29d | 2000-02-11 05:04:44 +0000 | [diff] [blame] | 11128 | ;; |
| 11129 | esac |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11130 | LINUX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11131 | CYGWIN_CMT="#" |
| 11132 | UNIX_CMT= |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11133 | case "$host_os" in |
| 11134 | linux*) |
| 11135 | LINUX_CMT= |
| 11136 | ;; |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11137 | cygwin) |
| 11138 | CYGWIN_CMT= |
| 11139 | UNIX_CMT="#" |
Theodore Ts'o | fff4548 | 2003-04-13 00:44:19 -0400 | [diff] [blame] | 11140 | ;; |
Theodore Ts'o | e6f2bda | 2002-08-18 03:37:10 -0400 | [diff] [blame] | 11141 | esac |
| 11142 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11143 | |
| 11144 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11145 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11146 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11147 | if test "$prefix" = NONE -a "$root_prefix" = NONE ; then |
| 11148 | root_prefix=""; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11149 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, root_prefix defaults to ''" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11150 | $as_echo "On $host_os systems, root_prefix defaults to ''" >&6; } |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11151 | fi |
| 11152 | ;; |
| 11153 | esac |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11154 | case "$host_os" in |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11155 | linux* | gnu* | k*bsd*-gnu) |
Theodore Ts'o | fc6d9d5 | 1997-04-29 14:51:31 +0000 | [diff] [blame] | 11156 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11157 | prefix="/usr"; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11158 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: On $host_os systems, prefix defaults to /usr" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11159 | $as_echo "On $host_os systems, prefix defaults to /usr" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11160 | if test "$mandir" = '${prefix}/man' ; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11161 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ...and mandir defaults to /usr/share/man" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11162 | $as_echo "...and mandir defaults to /usr/share/man" >&6; } |
Theodore Ts'o | bff61a7 | 2002-05-21 22:21:38 -0400 | [diff] [blame] | 11163 | mandir=/usr/share/man |
| 11164 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11165 | fi |
| 11166 | ;; |
| 11167 | esac |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11168 | if test "$root_prefix" = NONE ; then |
Theodore Ts'o | ffe1991 | 1998-04-08 06:05:49 +0000 | [diff] [blame] | 11169 | if test "$prefix" = NONE ; then |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11170 | root_prefix="$ac_default_prefix" |
| 11171 | else |
| 11172 | root_prefix="$prefix" |
| 11173 | fi |
Theodore Ts'o | b5ffead | 2002-05-11 19:17:00 -0400 | [diff] [blame] | 11174 | root_bindir=$bindir |
| 11175 | root_sbindir=$sbindir |
| 11176 | root_libdir=$libdir |
| 11177 | root_sysconfdir=$sysconfdir |
| 11178 | else |
| 11179 | root_bindir='${root_prefix}/bin' |
| 11180 | root_sbindir='${root_prefix}/sbin' |
| 11181 | root_libdir='${root_prefix}/lib' |
| 11182 | root_sysconfdir='${root_prefix}/etc' |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11183 | fi |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11184 | if test "$bindir" != '${exec_prefix}/bin'; then |
| 11185 | root_bindir=$bindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11186 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_bindir to $root_bindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11187 | $as_echo "Setting root_bindir to $root_bindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11188 | fi |
| 11189 | if test "$sbindir" != '${exec_prefix}/sbin'; then |
| 11190 | root_sbindir=$sbindir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11191 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sbindir to $root_sbindir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11192 | $as_echo "Setting root_sbindir to $root_sbindir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11193 | fi |
| 11194 | if test "$libdir" != '${exec_prefix}/lib'; then |
| 11195 | root_libdir=$libdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11196 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_libdir to $root_libdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11197 | $as_echo "Setting root_libdir to $root_libdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11198 | fi |
| 11199 | if test "$sysconfdir" != '${prefix}/etc'; then |
| 11200 | root_sysconfdir=$sysconfdir |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11201 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Setting root_sysconfdir to $root_sysconfdir" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11202 | $as_echo "Setting root_sysconfdir to $root_sysconfdir" >&6; } |
Theodore Ts'o | c4ef11c | 2008-01-04 16:55:37 -0500 | [diff] [blame] | 11203 | fi |
Theodore Ts'o | a4b2d3c | 1998-04-03 16:12:25 +0000 | [diff] [blame] | 11204 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11205 | |
| 11206 | |
| 11207 | |
| 11208 | |
Theodore Ts'o | 55e00a2 | 2011-09-18 23:53:23 -0400 | [diff] [blame] | 11209 | |
| 11210 | # Check whether --with-multiarch was given. |
| 11211 | if test "${with_multiarch+set}" = set; then : |
| 11212 | withval=$with_multiarch; libdir=$libdir/$withval |
| 11213 | root_libdir=$root_libdir/$withval |
| 11214 | |
| 11215 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11216 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether linker accepts -static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11217 | $as_echo_n "checking whether linker accepts -static... " >&6; } |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11218 | if test "${ac_cv_e2fsprogs_use_static+set}" = set; then : |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11219 | $as_echo_n "(cached) " >&6 |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11220 | else |
| 11221 | SAVE_LDFLAGS=$LDFLAGS; LDFLAGS="$LDFLAGS -static" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11223 | /* end confdefs.h. */ |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11224 | #include <stdio.h> |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11225 | int |
| 11226 | main () |
| 11227 | { |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11228 | fflush(stdout); |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11229 | ; |
| 11230 | return 0; |
| 11231 | } |
| 11232 | _ACEOF |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11233 | if ac_fn_c_try_link "$LINENO"; then : |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11234 | ac_cv_e2fsprogs_use_static=yes |
| 11235 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11236 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11237 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11238 | rm -f core conftest.err conftest.$ac_objext \ |
| 11239 | conftest$ac_exeext conftest.$ac_ext |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11240 | LDFLAGS=$SAVE_LDFLAGS |
| 11241 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11242 | |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11243 | case "$host_os" in |
| 11244 | solaris2.*) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11245 | ac_cv_e2fsprogs_use_static=no |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11246 | ;; |
| 11247 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11248 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_e2fsprogs_use_static" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11249 | $as_echo "$ac_cv_e2fsprogs_use_static" >&6; } |
Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 11250 | LDFLAG_STATIC= |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11251 | if test $ac_cv_e2fsprogs_use_static = yes; then |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11252 | LDFLAG_STATIC=-static |
Theodore Ts'o | ae85148 | 1997-04-29 18:13:24 +0000 | [diff] [blame] | 11253 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11254 | |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11255 | case "$host_os" in |
| 11256 | darwin*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11257 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: Using Apple Darwin / GNU libintl workaround" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11258 | $as_echo "Using Apple Darwin / GNU libintl workaround" >&6; } |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11259 | |
| 11260 | $as_echo "#define _INTL_REDIRECT_MACROS 1" >>confdefs.h |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11261 | |
| 11262 | ;; |
| 11263 | esac |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11264 | SS_DIR=`cd ${srcdir}/lib/ss; pwd` |
| 11265 | ET_DIR=`cd ${srcdir}/lib/et; pwd` |
| 11266 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11267 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11268 | if test "$cross_compiling" = yes ; then |
| 11269 | DO_TEST_SUITE= |
| 11270 | else |
| 11271 | DO_TEST_SUITE=check |
| 11272 | fi |
| 11273 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11274 | INCLUDES='-I. -I$(top_builddir)/lib -I$(top_srcdir)/lib' |
| 11275 | if test -n "$CPPFLAGS" ; then |
| 11276 | INCLUDES="$INCLUDES $CPPFLAGS" |
| 11277 | fi |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11278 | if test "$USE_INCLUDED_LIBINTL" = "yes" ; then |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11279 | INCLUDES=$INCLUDES' -I$(top_builddir)/intl -I$(top_srcdir)/intl' |
Theodore Ts'o | c6f35b8 | 2003-05-17 16:29:27 -0400 | [diff] [blame] | 11280 | fi |
| 11281 | |
Theodore Ts'o | dd947da | 2005-11-09 18:37:07 -0400 | [diff] [blame] | 11282 | if test $cross_compiling = no; then |
| 11283 | BUILD_CFLAGS="$CFLAGS" |
| 11284 | BUILD_LDFLAGS="$LDFLAGS" |
| 11285 | else |
| 11286 | BUILD_CFLAGS= |
| 11287 | BUILD_LDFLAGS= |
| 11288 | fi |
| 11289 | |
| 11290 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11291 | test -d lib || mkdir lib |
| 11292 | test -d include || mkdir include |
| 11293 | test -d include/linux || mkdir include/linux |
Theodore Ts'o | defde78 | 1999-01-04 07:39:19 +0000 | [diff] [blame] | 11294 | test -d include/asm || mkdir include/asm |
Theodore Ts'o | bff0cc9 | 2003-03-23 01:37:53 -0500 | [diff] [blame] | 11295 | for i in MCONFIG Makefile e2fsprogs.spec \ |
| 11296 | util/Makefile util/subst.conf util/gen-tarball \ |
Theodore Ts'o | 4ea7ea0 | 2006-04-09 08:41:55 -0400 | [diff] [blame] | 11297 | lib/et/Makefile lib/ss/Makefile lib/e2p/Makefile \ |
| 11298 | lib/ext2fs/Makefile lib/ext2fs/ext2_types.h \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11299 | lib/uuid/Makefile lib/uuid/uuid_types.h \ |
Aditya Kali | f239fef | 2011-07-20 11:40:02 -0700 | [diff] [blame] | 11300 | lib/blkid/Makefile lib/blkid/blkid_types.h lib/quota/Makefile \ |
Theodore Ts'o | e644186 | 2005-01-26 12:59:25 -0500 | [diff] [blame] | 11301 | lib/ss/ss.pc lib/uuid/uuid.pc lib/et/com_err.pc \ |
| 11302 | lib/e2p/e2p.pc lib/blkid/blkid.pc lib/ext2fs/ext2fs.pc \ |
Theodore Ts'o | 921f4ad | 2004-11-19 17:25:27 -0500 | [diff] [blame] | 11303 | misc/Makefile ext2ed/Makefile e2fsck/Makefile \ |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11304 | debugfs/Makefile tests/Makefile tests/progs/Makefile \ |
Matthias Andree | 98a5ad6 | 2009-07-15 17:37:52 +0200 | [diff] [blame] | 11305 | resize/Makefile doc/Makefile intl/Makefile \ |
| 11306 | intl/libgnuintl.h po/Makefile.in ; do |
Theodore Ts'o | 94ba8c7 | 2003-03-02 02:07:14 -0500 | [diff] [blame] | 11307 | if test -d `dirname ${srcdir}/$i` ; then |
| 11308 | outlist="$outlist $i" |
| 11309 | fi |
| 11310 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11311 | ac_config_files="$ac_config_files $outlist" |
| 11312 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11313 | cat >confcache <<\_ACEOF |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11314 | # This file is a shell script that caches the results of configure |
| 11315 | # tests run on this system so they can be shared between configure |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11316 | # scripts and configure runs, see configure's option --config-cache. |
| 11317 | # It is not useful on other systems. If it contains results you don't |
| 11318 | # want to keep, you may remove or edit it. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11319 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11320 | # config.status only pays attention to the cache file if you give it |
| 11321 | # the --recheck option to rerun configure. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11322 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11323 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
| 11324 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
| 11325 | # following values. |
| 11326 | |
| 11327 | _ACEOF |
| 11328 | |
Theodore Ts'o | 21c84b7 | 1997-04-29 16:15:03 +0000 | [diff] [blame] | 11329 | # The following way of writing the cache mishandles newlines in values, |
| 11330 | # but we know of no workaround that is simple, portable, and efficient. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11331 | # So, we kill variables containing newlines. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11332 | # Ultrix sh set writes to stderr and can't be redirected directly, |
| 11333 | # and sets the high bit in the cache file unless we assign to the vars. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11334 | ( |
| 11335 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
| 11336 | eval ac_val=\$$ac_var |
| 11337 | case $ac_val in #( |
| 11338 | *${as_nl}*) |
| 11339 | case $ac_var in #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11340 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11341 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11342 | esac |
| 11343 | case $ac_var in #( |
| 11344 | _ | IFS | as_nl) ;; #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11345 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11346 | *) { eval $ac_var=; unset $ac_var;} ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11347 | esac ;; |
| 11348 | esac |
| 11349 | done |
| 11350 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11351 | (set) 2>&1 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11352 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
| 11353 | *${as_nl}ac_space=\ *) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11354 | # `set' does not quote correctly, so add quotes: double-quote |
| 11355 | # substitution turns \\\\ into \\, and sed turns \\ into \. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11356 | sed -n \ |
| 11357 | "s/'/'\\\\''/g; |
| 11358 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11359 | ;; #( |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11360 | *) |
| 11361 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11362 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11363 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11364 | esac | |
| 11365 | sort |
| 11366 | ) | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11367 | sed ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11368 | /^ac_cv_env_/b end |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11369 | t clear |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11370 | :clear |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11371 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
| 11372 | t end |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11373 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
| 11374 | :end' >>confcache |
| 11375 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
| 11376 | if test -w "$cache_file"; then |
| 11377 | test "x$cache_file" != "x/dev/null" && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11378 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11379 | $as_echo "$as_me: updating cache $cache_file" >&6;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11380 | cat confcache >$cache_file |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11381 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11382 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11383 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11384 | fi |
| 11385 | fi |
| 11386 | rm -f confcache |
| 11387 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11388 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
| 11389 | # Let make expand exec_prefix. |
| 11390 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
| 11391 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11392 | DEFS=-DHAVE_CONFIG_H |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11393 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11394 | ac_libobjs= |
| 11395 | ac_ltlibobjs= |
| 11396 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
| 11397 | # 1. Remove the extension, and $U if already installed. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11398 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11399 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11400 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
| 11401 | # will be set to the directory where LIBOBJS objects are built. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11402 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
| 11403 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11404 | done |
| 11405 | LIBOBJS=$ac_libobjs |
| 11406 | |
| 11407 | LTLIBOBJS=$ac_ltlibobjs |
| 11408 | |
| 11409 | |
| 11410 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11411 | |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11412 | : ${CONFIG_STATUS=./config.status} |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11413 | ac_write_fail=0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11414 | ac_clean_files_save=$ac_clean_files |
| 11415 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11416 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11417 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11418 | as_write_fail=0 |
| 11419 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11420 | #! $SHELL |
| 11421 | # Generated by $as_me. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11422 | # Run this file to recreate the current configuration. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11423 | # Compiler output produced by configure, useful for debugging |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11424 | # configure, is in config.log if it exists. |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 11425 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11426 | debug=false |
| 11427 | ac_cs_recheck=false |
| 11428 | ac_cs_silent=false |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11429 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11430 | SHELL=\${CONFIG_SHELL-$SHELL} |
| 11431 | export SHELL |
| 11432 | _ASEOF |
| 11433 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 |
| 11434 | ## -------------------- ## |
| 11435 | ## M4sh Initialization. ## |
| 11436 | ## -------------------- ## |
Theodore Ts'o | 07a0db1 | 2003-07-05 14:50:24 -0400 | [diff] [blame] | 11437 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11438 | # Be more Bourne compatible |
| 11439 | DUALCASE=1; export DUALCASE # for MKS sh |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11440 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11441 | emulate sh |
| 11442 | NULLCMD=: |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11443 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11444 | # is contrary to our usage. Disable this feature. |
| 11445 | alias -g '${1+"$@"}'='"$@"' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11446 | setopt NO_GLOB_SUBST |
| 11447 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11448 | case `(set -o) 2>/dev/null` in #( |
| 11449 | *posix*) : |
| 11450 | set -o posix ;; #( |
| 11451 | *) : |
| 11452 | ;; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11453 | esac |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11454 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11455 | |
| 11456 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11457 | as_nl=' |
| 11458 | ' |
| 11459 | export as_nl |
| 11460 | # Printing a long string crashes Solaris 7 /usr/bin/printf. |
| 11461 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' |
| 11462 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo |
| 11463 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11464 | # Prefer a ksh shell builtin over an external printf program on Solaris, |
| 11465 | # but without wasting forks for bash or zsh. |
| 11466 | if test -z "$BASH_VERSION$ZSH_VERSION" \ |
| 11467 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then |
| 11468 | as_echo='print -r --' |
| 11469 | as_echo_n='print -rn --' |
| 11470 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11471 | as_echo='printf %s\n' |
| 11472 | as_echo_n='printf %s' |
| 11473 | else |
| 11474 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then |
| 11475 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' |
| 11476 | as_echo_n='/usr/ucb/echo -n' |
| 11477 | else |
| 11478 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' |
| 11479 | as_echo_n_body='eval |
| 11480 | arg=$1; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11481 | case $arg in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11482 | *"$as_nl"*) |
| 11483 | expr "X$arg" : "X\\(.*\\)$as_nl"; |
| 11484 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; |
| 11485 | esac; |
| 11486 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" |
| 11487 | ' |
| 11488 | export as_echo_n_body |
| 11489 | as_echo_n='sh -c $as_echo_n_body as_echo' |
| 11490 | fi |
| 11491 | export as_echo_body |
| 11492 | as_echo='sh -c $as_echo_body as_echo' |
| 11493 | fi |
| 11494 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11495 | # The user is always right. |
| 11496 | if test "${PATH_SEPARATOR+set}" != set; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11497 | PATH_SEPARATOR=: |
| 11498 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { |
| 11499 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || |
| 11500 | PATH_SEPARATOR=';' |
| 11501 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11502 | fi |
| 11503 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11504 | |
| 11505 | # IFS |
| 11506 | # We need space, tab and new line, in precisely that order. Quoting is |
| 11507 | # there to prevent editors from complaining about space-tab. |
| 11508 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
| 11509 | # splitting by setting IFS to empty value.) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11510 | IFS=" "" $as_nl" |
| 11511 | |
| 11512 | # Find who we are. Look in the path if we contain no directory separator. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11513 | case $0 in #(( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11514 | *[\\/]* ) as_myself=$0 ;; |
| 11515 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11516 | for as_dir in $PATH |
| 11517 | do |
| 11518 | IFS=$as_save_IFS |
| 11519 | test -z "$as_dir" && as_dir=. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11520 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
| 11521 | done |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11522 | IFS=$as_save_IFS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11523 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11524 | ;; |
| 11525 | esac |
| 11526 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
| 11527 | # in which case we are not to be found in the path. |
| 11528 | if test "x$as_myself" = x; then |
| 11529 | as_myself=$0 |
| 11530 | fi |
| 11531 | if test ! -f "$as_myself"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11532 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11533 | exit 1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11534 | fi |
| 11535 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11536 | # Unset variables that we do not need and which cause bugs (e.g. in |
| 11537 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" |
| 11538 | # suppresses any "Segmentation fault" message there. '((' could |
| 11539 | # trigger a bug in pdksh 5.2.14. |
| 11540 | for as_var in BASH_ENV ENV MAIL MAILPATH |
| 11541 | do eval test x\${$as_var+set} = xset \ |
| 11542 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11543 | done |
| 11544 | PS1='$ ' |
| 11545 | PS2='> ' |
| 11546 | PS4='+ ' |
| 11547 | |
| 11548 | # NLS nuisances. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11549 | LC_ALL=C |
| 11550 | export LC_ALL |
| 11551 | LANGUAGE=C |
| 11552 | export LANGUAGE |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11553 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11554 | # CDPATH. |
| 11555 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
| 11556 | |
| 11557 | |
| 11558 | # as_fn_error ERROR [LINENO LOG_FD] |
| 11559 | # --------------------------------- |
| 11560 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are |
| 11561 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the |
| 11562 | # script with status $?, using 1 if that was 0. |
| 11563 | as_fn_error () |
| 11564 | { |
| 11565 | as_status=$?; test $as_status -eq 0 && as_status=1 |
| 11566 | if test "$3"; then |
| 11567 | as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack |
| 11568 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 |
| 11569 | fi |
| 11570 | $as_echo "$as_me: error: $1" >&2 |
| 11571 | as_fn_exit $as_status |
| 11572 | } # as_fn_error |
| 11573 | |
| 11574 | |
| 11575 | # as_fn_set_status STATUS |
| 11576 | # ----------------------- |
| 11577 | # Set $? to STATUS, without forking. |
| 11578 | as_fn_set_status () |
| 11579 | { |
| 11580 | return $1 |
| 11581 | } # as_fn_set_status |
| 11582 | |
| 11583 | # as_fn_exit STATUS |
| 11584 | # ----------------- |
| 11585 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. |
| 11586 | as_fn_exit () |
| 11587 | { |
| 11588 | set +e |
| 11589 | as_fn_set_status $1 |
| 11590 | exit $1 |
| 11591 | } # as_fn_exit |
| 11592 | |
| 11593 | # as_fn_unset VAR |
| 11594 | # --------------- |
| 11595 | # Portably unset VAR. |
| 11596 | as_fn_unset () |
| 11597 | { |
| 11598 | { eval $1=; unset $1;} |
| 11599 | } |
| 11600 | as_unset=as_fn_unset |
| 11601 | # as_fn_append VAR VALUE |
| 11602 | # ---------------------- |
| 11603 | # Append the text in VALUE to the end of the definition contained in VAR. Take |
| 11604 | # advantage of any shell optimizations that allow amortized linear growth over |
| 11605 | # repeated appends, instead of the typical quadratic growth present in naive |
| 11606 | # implementations. |
| 11607 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : |
| 11608 | eval 'as_fn_append () |
| 11609 | { |
| 11610 | eval $1+=\$2 |
| 11611 | }' |
| 11612 | else |
| 11613 | as_fn_append () |
| 11614 | { |
| 11615 | eval $1=\$$1\$2 |
| 11616 | } |
| 11617 | fi # as_fn_append |
| 11618 | |
| 11619 | # as_fn_arith ARG... |
| 11620 | # ------------------ |
| 11621 | # Perform arithmetic evaluation on the ARGs, and store the result in the |
| 11622 | # global $as_val. Take advantage of shells that can avoid forks. The arguments |
| 11623 | # must be portable across $(()) and expr. |
| 11624 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : |
| 11625 | eval 'as_fn_arith () |
| 11626 | { |
| 11627 | as_val=$(( $* )) |
| 11628 | }' |
| 11629 | else |
| 11630 | as_fn_arith () |
| 11631 | { |
| 11632 | as_val=`expr "$@" || test $? -eq 1` |
| 11633 | } |
| 11634 | fi # as_fn_arith |
| 11635 | |
| 11636 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11637 | if expr a : '\(a\)' >/dev/null 2>&1 && |
| 11638 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
| 11639 | as_expr=expr |
| 11640 | else |
| 11641 | as_expr=false |
| 11642 | fi |
| 11643 | |
| 11644 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
| 11645 | as_basename=basename |
| 11646 | else |
| 11647 | as_basename=false |
| 11648 | fi |
| 11649 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11650 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
| 11651 | as_dirname=dirname |
| 11652 | else |
| 11653 | as_dirname=false |
| 11654 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11655 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11656 | as_me=`$as_basename -- "$0" || |
| 11657 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
| 11658 | X"$0" : 'X\(//\)$' \| \ |
| 11659 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11660 | $as_echo X/"$0" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11661 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
| 11662 | s//\1/ |
| 11663 | q |
| 11664 | } |
| 11665 | /^X\/\(\/\/\)$/{ |
| 11666 | s//\1/ |
| 11667 | q |
| 11668 | } |
| 11669 | /^X\/\(\/\).*/{ |
| 11670 | s//\1/ |
| 11671 | q |
| 11672 | } |
| 11673 | s/.*/./; q'` |
| 11674 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11675 | # Avoid depending upon Character Ranges. |
| 11676 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
| 11677 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
| 11678 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
| 11679 | as_cr_digits='0123456789' |
| 11680 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11681 | |
| 11682 | ECHO_C= ECHO_N= ECHO_T= |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11683 | case `echo -n x` in #((((( |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11684 | -n*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11685 | case `echo 'xy\c'` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11686 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11687 | xy) ECHO_C='\c';; |
| 11688 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null |
| 11689 | ECHO_T=' ';; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11690 | esac;; |
| 11691 | *) |
| 11692 | ECHO_N='-n';; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11693 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11694 | |
| 11695 | rm -f conf$$ conf$$.exe conf$$.file |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11696 | if test -d conf$$.dir; then |
| 11697 | rm -f conf$$.dir/conf$$.file |
| 11698 | else |
| 11699 | rm -f conf$$.dir |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11700 | mkdir conf$$.dir 2>/dev/null |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11701 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11702 | if (echo >conf$$.file) 2>/dev/null; then |
| 11703 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
| 11704 | as_ln_s='ln -s' |
| 11705 | # ... but there are two gotchas: |
| 11706 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
| 11707 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
| 11708 | # In both cases, we have to default to `cp -p'. |
| 11709 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
| 11710 | as_ln_s='cp -p' |
| 11711 | elif ln conf$$.file conf$$ 2>/dev/null; then |
| 11712 | as_ln_s=ln |
| 11713 | else |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11714 | as_ln_s='cp -p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11715 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11716 | else |
| 11717 | as_ln_s='cp -p' |
| 11718 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11719 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
| 11720 | rmdir conf$$.dir 2>/dev/null |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11721 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11722 | |
| 11723 | # as_fn_mkdir_p |
| 11724 | # ------------- |
| 11725 | # Create "$as_dir" as a directory, including parents if necessary. |
| 11726 | as_fn_mkdir_p () |
| 11727 | { |
| 11728 | |
| 11729 | case $as_dir in #( |
| 11730 | -*) as_dir=./$as_dir;; |
| 11731 | esac |
| 11732 | test -d "$as_dir" || eval $as_mkdir_p || { |
| 11733 | as_dirs= |
| 11734 | while :; do |
| 11735 | case $as_dir in #( |
| 11736 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( |
| 11737 | *) as_qdir=$as_dir;; |
| 11738 | esac |
| 11739 | as_dirs="'$as_qdir' $as_dirs" |
| 11740 | as_dir=`$as_dirname -- "$as_dir" || |
| 11741 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 11742 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
| 11743 | X"$as_dir" : 'X\(//\)$' \| \ |
| 11744 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
| 11745 | $as_echo X"$as_dir" | |
| 11746 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 11747 | s//\1/ |
| 11748 | q |
| 11749 | } |
| 11750 | /^X\(\/\/\)[^/].*/{ |
| 11751 | s//\1/ |
| 11752 | q |
| 11753 | } |
| 11754 | /^X\(\/\/\)$/{ |
| 11755 | s//\1/ |
| 11756 | q |
| 11757 | } |
| 11758 | /^X\(\/\).*/{ |
| 11759 | s//\1/ |
| 11760 | q |
| 11761 | } |
| 11762 | s/.*/./; q'` |
| 11763 | test -d "$as_dir" && break |
| 11764 | done |
| 11765 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
| 11766 | } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" |
| 11767 | |
| 11768 | |
| 11769 | } # as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11770 | if mkdir -p . 2>/dev/null; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11771 | as_mkdir_p='mkdir -p "$as_dir"' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11772 | else |
| 11773 | test -d ./-p && rmdir ./-p |
| 11774 | as_mkdir_p=false |
| 11775 | fi |
| 11776 | |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11777 | if test -x / >/dev/null 2>&1; then |
| 11778 | as_test_x='test -x' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11779 | else |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11780 | if ls -dL / >/dev/null 2>&1; then |
| 11781 | as_ls_L_option=L |
| 11782 | else |
| 11783 | as_ls_L_option= |
| 11784 | fi |
| 11785 | as_test_x=' |
| 11786 | eval sh -c '\'' |
| 11787 | if test -d "$1"; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11788 | test -d "$1/."; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11789 | else |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11790 | case $1 in #( |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11791 | -*)set "./$1";; |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11792 | esac; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11793 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11794 | ???[sx]*):;;*)false;;esac;fi |
| 11795 | '\'' sh |
| 11796 | ' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11797 | fi |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11798 | as_executable_p=$as_test_x |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11799 | |
| 11800 | # Sed expression to map a string onto a valid CPP name. |
| 11801 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
| 11802 | |
| 11803 | # Sed expression to map a string onto a valid variable name. |
| 11804 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
| 11805 | |
| 11806 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11807 | exec 6>&1 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11808 | ## ----------------------------------- ## |
| 11809 | ## Main body of $CONFIG_STATUS script. ## |
| 11810 | ## ----------------------------------- ## |
| 11811 | _ASEOF |
| 11812 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11813 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11814 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11815 | # Save the log message, to keep $0 and so on meaningful, and to |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11816 | # report actual input values of CONFIG_FILES etc. instead of their |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11817 | # values after options handling. |
| 11818 | ac_log=" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11819 | This file was extended by $as_me, which was |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11820 | generated by GNU Autoconf 2.65. Invocation command line was |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11821 | |
| 11822 | CONFIG_FILES = $CONFIG_FILES |
| 11823 | CONFIG_HEADERS = $CONFIG_HEADERS |
| 11824 | CONFIG_LINKS = $CONFIG_LINKS |
| 11825 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
| 11826 | $ $0 $@ |
| 11827 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11828 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
| 11829 | " |
| 11830 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11831 | _ACEOF |
| 11832 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11833 | case $ac_config_files in *" |
| 11834 | "*) set x $ac_config_files; shift; ac_config_files=$*;; |
| 11835 | esac |
| 11836 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11837 | case $ac_config_headers in *" |
| 11838 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; |
| 11839 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11840 | |
| 11841 | |
| 11842 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11843 | # Files that config.status was made for. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11844 | config_files="$ac_config_files" |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11845 | config_headers="$ac_config_headers" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11846 | config_commands="$ac_config_commands" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11847 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11848 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11849 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11850 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11851 | ac_cs_usage="\ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11852 | \`$as_me' instantiates files and other configuration actions |
| 11853 | from templates according to the current configuration. Unless the files |
| 11854 | and actions are specified as TAGs, all are instantiated by default. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11855 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11856 | Usage: $0 [OPTION]... [TAG]... |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11857 | |
| 11858 | -h, --help print this help, then exit |
Theodore Ts'o | 29a5dee | 2007-07-04 16:28:47 -0400 | [diff] [blame] | 11859 | -V, --version print version number and configuration settings, then exit |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11860 | --config print configuration, then exit |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11861 | -q, --quiet, --silent |
| 11862 | do not print progress messages |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11863 | -d, --debug don't remove temporary files |
| 11864 | --recheck update $as_me by reconfiguring in the same conditions |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11865 | --file=FILE[:TEMPLATE] |
| 11866 | instantiate the configuration file FILE |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11867 | --header=FILE[:TEMPLATE] |
| 11868 | instantiate the configuration header FILE |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11869 | |
| 11870 | Configuration files: |
| 11871 | $config_files |
| 11872 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11873 | Configuration headers: |
| 11874 | $config_headers |
| 11875 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11876 | Configuration commands: |
| 11877 | $config_commands |
| 11878 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11879 | Report bugs to the package provider." |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11880 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11881 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11882 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11883 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11884 | ac_cs_version="\\ |
| 11885 | config.status |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11886 | configured by $0, generated by GNU Autoconf 2.65, |
| 11887 | with options \\"\$ac_cs_config\\" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11888 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11889 | Copyright (C) 2009 Free Software Foundation, Inc. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11890 | This config.status script is free software; the Free Software Foundation |
| 11891 | gives unlimited permission to copy, distribute and modify it." |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11892 | |
| 11893 | ac_pwd='$ac_pwd' |
| 11894 | srcdir='$srcdir' |
| 11895 | INSTALL='$INSTALL' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11896 | AWK='$AWK' |
| 11897 | test -n "\$AWK" || AWK=awk |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11898 | _ACEOF |
| 11899 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11900 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 11901 | # The default lists apply if the user does not specify any file. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11902 | ac_need_defaults=: |
| 11903 | while test $# != 0 |
| 11904 | do |
| 11905 | case $1 in |
| 11906 | --*=*) |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11907 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
| 11908 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11909 | ac_shift=: |
| 11910 | ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11911 | *) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11912 | ac_option=$1 |
| 11913 | ac_optarg=$2 |
| 11914 | ac_shift=shift |
| 11915 | ;; |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11916 | esac |
| 11917 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11918 | case $ac_option in |
| 11919 | # Handling of the options. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11920 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
| 11921 | ac_cs_recheck=: ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11922 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11923 | $as_echo "$ac_cs_version"; exit ;; |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 11924 | --config | --confi | --conf | --con | --co | --c ) |
| 11925 | $as_echo "$ac_cs_config"; exit ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11926 | --debug | --debu | --deb | --de | --d | -d ) |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11927 | debug=: ;; |
| 11928 | --file | --fil | --fi | --f ) |
| 11929 | $ac_shift |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11930 | case $ac_optarg in |
| 11931 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11932 | esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11933 | as_fn_append CONFIG_FILES " '$ac_optarg'" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11934 | ac_need_defaults=false;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 11935 | --header | --heade | --head | --hea ) |
| 11936 | $ac_shift |
| 11937 | case $ac_optarg in |
| 11938 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; |
| 11939 | esac |
| 11940 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" |
| 11941 | ac_need_defaults=false;; |
| 11942 | --he | --h) |
| 11943 | # Conflict between --help and --header |
| 11944 | as_fn_error "ambiguous option: \`$1' |
| 11945 | Try \`$0 --help' for more information.";; |
| 11946 | --help | --hel | -h ) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11947 | $as_echo "$ac_cs_usage"; exit ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11948 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
| 11949 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
| 11950 | ac_cs_silent=: ;; |
| 11951 | |
| 11952 | # This is an error. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11953 | -*) as_fn_error "unrecognized option: \`$1' |
| 11954 | Try \`$0 --help' for more information." ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11955 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 11956 | *) as_fn_append ac_config_targets " $1" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11957 | ac_need_defaults=false ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11958 | |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11959 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11960 | shift |
| 11961 | done |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11962 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11963 | ac_configure_extra_args= |
Theodore Ts'o | 93636bd | 2003-07-12 02:45:05 -0400 | [diff] [blame] | 11964 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11965 | if $ac_cs_silent; then |
| 11966 | exec 6>/dev/null |
| 11967 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
| 11968 | fi |
| 11969 | |
| 11970 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11971 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11972 | if \$ac_cs_recheck; then |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11973 | set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
| 11974 | shift |
| 11975 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 |
| 11976 | CONFIG_SHELL='$SHELL' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11977 | export CONFIG_SHELL |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11978 | exec "\$@" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11979 | fi |
| 11980 | |
| 11981 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11982 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11983 | exec 5>>config.log |
| 11984 | { |
| 11985 | echo |
| 11986 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
| 11987 | ## Running $as_me. ## |
| 11988 | _ASBOX |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11989 | $as_echo "$ac_log" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11990 | } >&5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11991 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11992 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 11993 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11994 | # |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 11995 | # INIT-COMMANDS |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11996 | # |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11997 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 11998 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 11999 | # from automake. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12000 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12001 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
| 12002 | LINGUAS="${LINGUAS-%UNSET%}" |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12003 | |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12004 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12005 | _ACEOF |
| 12006 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12007 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12008 | |
| 12009 | # Handling of arguments. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12010 | for ac_config_target in $ac_config_targets |
| 12011 | do |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12012 | case $ac_config_target in |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12013 | "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h" ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12014 | "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; |
| 12015 | "$outlist") CONFIG_FILES="$CONFIG_FILES $outlist" ;; |
| 12016 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12017 | *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12018 | esac |
| 12019 | done |
| 12020 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12021 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12022 | # If the user did not use the arguments to specify the items to instantiate, |
| 12023 | # then the envvar interface is used. Set only those that are not. |
| 12024 | # We use the long form for the default assignment because of an extremely |
| 12025 | # bizarre bug on SunOS 4.1.3. |
| 12026 | if $ac_need_defaults; then |
| 12027 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12028 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12029 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
| 12030 | fi |
| 12031 | |
| 12032 | # Have a temporary directory for convenience. Make it in the build tree |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12033 | # simply because there is no reason against having it here, and in addition, |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12034 | # creating and moving files from /tmp can sometimes cause problems. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12035 | # Hook for its removal unless debugging. |
| 12036 | # Note that there is a small window in which the directory will not be cleaned: |
| 12037 | # after its creation but before its name has been assigned to `$tmp'. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12038 | $debug || |
| 12039 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12040 | tmp= |
| 12041 | trap 'exit_status=$? |
| 12042 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
| 12043 | ' 0 |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12044 | trap 'as_fn_exit 1' 1 2 13 15 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12045 | } |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12046 | # Create a (secure) tmp directory for tmp files. |
| 12047 | |
| 12048 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12049 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12050 | test -n "$tmp" && test -d "$tmp" |
| 12051 | } || |
| 12052 | { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12053 | tmp=./conf$$-$RANDOM |
| 12054 | (umask 077 && mkdir "$tmp") |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12055 | } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12056 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12057 | # Set up the scripts for CONFIG_FILES section. |
| 12058 | # No need to generate them if there are no CONFIG_FILES. |
| 12059 | # This happens for instance with `./config.status config.h'. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12060 | if test -n "$CONFIG_FILES"; then |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12061 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12062 | if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then |
| 12063 | ac_cs_awk_getline=: |
| 12064 | ac_cs_awk_pipe_init= |
| 12065 | ac_cs_awk_read_file=' |
| 12066 | while ((getline aline < (F[key])) > 0) |
| 12067 | print(aline) |
| 12068 | close(F[key])' |
| 12069 | ac_cs_awk_pipe_fini= |
| 12070 | else |
| 12071 | ac_cs_awk_getline=false |
| 12072 | ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\"" |
| 12073 | ac_cs_awk_read_file=' |
| 12074 | print "|#_!!_#|" |
| 12075 | print "cat " F[key] " &&" |
| 12076 | '$ac_cs_awk_pipe_init |
| 12077 | # The final `:' finishes the AND list. |
| 12078 | ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }' |
| 12079 | fi |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12080 | ac_cr=`echo X | tr X '\015'` |
| 12081 | # On cygwin, bash can eat \r inside `` if the user requested igncr. |
| 12082 | # But we know of no other shell where ac_cr would be empty at this |
| 12083 | # point, so we can use a bashism as a fallback. |
| 12084 | if test "x$ac_cr" = x; then |
| 12085 | eval ac_cr=\$\'\\r\' |
| 12086 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12087 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` |
| 12088 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12089 | ac_cs_awk_cr='\r' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12090 | else |
| 12091 | ac_cs_awk_cr=$ac_cr |
| 12092 | fi |
| 12093 | |
| 12094 | echo 'BEGIN {' >"$tmp/subs1.awk" && |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12095 | _ACEOF |
| 12096 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12097 | # Create commands to substitute file output variables. |
| 12098 | { |
| 12099 | echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" && |
| 12100 | echo 'cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&' && |
| 12101 | echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' && |
| 12102 | echo "_ACAWK" && |
| 12103 | echo "_ACEOF" |
| 12104 | } >conf$$files.sh && |
| 12105 | . ./conf$$files.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12106 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12107 | rm -f conf$$files.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12108 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12109 | { |
| 12110 | echo "cat >conf$$subs.awk <<_ACEOF" && |
| 12111 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && |
| 12112 | echo "_ACEOF" |
| 12113 | } >conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12114 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12115 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12116 | ac_delim='%!_!# ' |
| 12117 | for ac_last_try in false false false false false :; do |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12118 | . ./conf$$subs.sh || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12119 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12120 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12121 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` |
| 12122 | if test $ac_delim_n = $ac_delim_num; then |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12123 | break |
| 12124 | elif $ac_last_try; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12125 | as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12126 | else |
| 12127 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12128 | fi |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12129 | done |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12130 | rm -f conf$$subs.sh |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12131 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12132 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12133 | cat >>"\$tmp/subs1.awk" <<\\_ACAWK && |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12134 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12135 | sed -n ' |
| 12136 | h |
| 12137 | s/^/S["/; s/!.*/"]=/ |
| 12138 | p |
| 12139 | g |
| 12140 | s/^[^!]*!// |
| 12141 | :repl |
| 12142 | t repl |
| 12143 | s/'"$ac_delim"'$// |
| 12144 | t delim |
| 12145 | :nl |
| 12146 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12147 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12148 | t more1 |
| 12149 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ |
| 12150 | p |
| 12151 | n |
| 12152 | b repl |
| 12153 | :more1 |
| 12154 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12155 | p |
| 12156 | g |
| 12157 | s/.\{148\}// |
| 12158 | t nl |
| 12159 | :delim |
| 12160 | h |
Theodore Ts'o | 61ef247 | 2010-08-01 22:30:33 -0400 | [diff] [blame] | 12161 | s/\(.\{148\}\)..*/\1/ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12162 | t more2 |
| 12163 | s/["\\]/\\&/g; s/^/"/; s/$/"/ |
| 12164 | p |
| 12165 | b |
| 12166 | :more2 |
| 12167 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ |
| 12168 | p |
| 12169 | g |
| 12170 | s/.\{148\}// |
| 12171 | t delim |
| 12172 | ' <conf$$subs.awk | sed ' |
| 12173 | /^[^""]/{ |
| 12174 | N |
| 12175 | s/\n// |
| 12176 | } |
| 12177 | ' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12178 | rm -f conf$$subs.awk |
| 12179 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12180 | _ACAWK |
| 12181 | cat >>"\$tmp/subs1.awk" <<_ACAWK && |
| 12182 | for (key in S) S_is_set[key] = 1 |
| 12183 | FS = "" |
| 12184 | \$ac_cs_awk_pipe_init |
| 12185 | } |
| 12186 | { |
| 12187 | line = $ 0 |
| 12188 | nfields = split(line, field, "@") |
| 12189 | substed = 0 |
| 12190 | len = length(field[1]) |
| 12191 | for (i = 2; i < nfields; i++) { |
| 12192 | key = field[i] |
| 12193 | keylen = length(key) |
| 12194 | if (S_is_set[key]) { |
| 12195 | value = S[key] |
| 12196 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) |
| 12197 | len += length(value) + length(field[++i]) |
| 12198 | substed = 1 |
| 12199 | } else |
| 12200 | len += 1 + keylen |
| 12201 | } |
| 12202 | if (nfields == 3 && !substed) { |
| 12203 | key = field[2] |
| 12204 | if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) { |
| 12205 | \$ac_cs_awk_read_file |
| 12206 | next |
| 12207 | } |
| 12208 | } |
| 12209 | print line |
| 12210 | } |
| 12211 | \$ac_cs_awk_pipe_fini |
| 12212 | _ACAWK |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12213 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12214 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12215 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then |
| 12216 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" |
| 12217 | else |
| 12218 | cat |
| 12219 | fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12220 | || as_fn_error "could not setup config files machinery" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12221 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12222 | |
| 12223 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
| 12224 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
| 12225 | # trailing colons and then remove the whole line if VPATH becomes empty |
| 12226 | # (actually we leave an empty line to preserve line numbers). |
| 12227 | if test "x$srcdir" = x.; then |
| 12228 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
| 12229 | s/:*\$(srcdir):*/:/ |
| 12230 | s/:*\${srcdir}:*/:/ |
| 12231 | s/:*@srcdir@:*/:/ |
| 12232 | s/^\([^=]*=[ ]*\):*/\1/ |
| 12233 | s/:*$// |
| 12234 | s/^[^=]*=[ ]*$// |
| 12235 | }' |
| 12236 | fi |
| 12237 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12238 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12239 | fi # test -n "$CONFIG_FILES" |
| 12240 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12241 | # Set up the scripts for CONFIG_HEADERS section. |
| 12242 | # No need to generate them if there are no CONFIG_HEADERS. |
| 12243 | # This happens for instance with `./config.status Makefile'. |
| 12244 | if test -n "$CONFIG_HEADERS"; then |
| 12245 | cat >"$tmp/defines.awk" <<\_ACAWK || |
| 12246 | BEGIN { |
| 12247 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12248 | |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12249 | # Transform confdefs.h into an awk script `defines.awk', embedded as |
| 12250 | # here-document in config.status, that substitutes the proper values into |
| 12251 | # config.h.in to produce config.h. |
| 12252 | |
| 12253 | # Create a delimiter string that does not exist in confdefs.h, to ease |
| 12254 | # handling of long lines. |
| 12255 | ac_delim='%!_!# ' |
| 12256 | for ac_last_try in false false :; do |
| 12257 | ac_t=`sed -n "/$ac_delim/p" confdefs.h` |
| 12258 | if test -z "$ac_t"; then |
| 12259 | break |
| 12260 | elif $ac_last_try; then |
| 12261 | as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 |
| 12262 | else |
| 12263 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
| 12264 | fi |
| 12265 | done |
| 12266 | |
| 12267 | # For the awk script, D is an array of macro values keyed by name, |
| 12268 | # likewise P contains macro parameters if any. Preserve backslash |
| 12269 | # newline sequences. |
| 12270 | |
| 12271 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
| 12272 | sed -n ' |
| 12273 | s/.\{148\}/&'"$ac_delim"'/g |
| 12274 | t rset |
| 12275 | :rset |
| 12276 | s/^[ ]*#[ ]*define[ ][ ]*/ / |
| 12277 | t def |
| 12278 | d |
| 12279 | :def |
| 12280 | s/\\$// |
| 12281 | t bsnl |
| 12282 | s/["\\]/\\&/g |
| 12283 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12284 | D["\1"]=" \3"/p |
| 12285 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p |
| 12286 | d |
| 12287 | :bsnl |
| 12288 | s/["\\]/\\&/g |
| 12289 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ |
| 12290 | D["\1"]=" \3\\\\\\n"\\/p |
| 12291 | t cont |
| 12292 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p |
| 12293 | t cont |
| 12294 | d |
| 12295 | :cont |
| 12296 | n |
| 12297 | s/.\{148\}/&'"$ac_delim"'/g |
| 12298 | t clear |
| 12299 | :clear |
| 12300 | s/\\$// |
| 12301 | t bsnlc |
| 12302 | s/["\\]/\\&/g; s/^/"/; s/$/"/p |
| 12303 | d |
| 12304 | :bsnlc |
| 12305 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p |
| 12306 | b cont |
| 12307 | ' <confdefs.h | sed ' |
| 12308 | s/'"$ac_delim"'/"\\\ |
| 12309 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 |
| 12310 | |
| 12311 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12312 | for (key in D) D_is_set[key] = 1 |
| 12313 | FS = "" |
| 12314 | } |
| 12315 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { |
| 12316 | line = \$ 0 |
| 12317 | split(line, arg, " ") |
| 12318 | if (arg[1] == "#") { |
| 12319 | defundef = arg[2] |
| 12320 | mac1 = arg[3] |
| 12321 | } else { |
| 12322 | defundef = substr(arg[1], 2) |
| 12323 | mac1 = arg[2] |
| 12324 | } |
| 12325 | split(mac1, mac2, "(") #) |
| 12326 | macro = mac2[1] |
| 12327 | prefix = substr(line, 1, index(line, defundef) - 1) |
| 12328 | if (D_is_set[macro]) { |
| 12329 | # Preserve the white space surrounding the "#". |
| 12330 | print prefix "define", macro P[macro] D[macro] |
| 12331 | next |
| 12332 | } else { |
| 12333 | # Replace #undef with comments. This is necessary, for example, |
| 12334 | # in the case of _POSIX_SOURCE, which is predefined and required |
| 12335 | # on some systems where configure will not decide to define it. |
| 12336 | if (defundef == "undef") { |
| 12337 | print "/*", prefix defundef, macro, "*/" |
| 12338 | next |
| 12339 | } |
| 12340 | } |
| 12341 | } |
| 12342 | { print } |
| 12343 | _ACAWK |
| 12344 | _ACEOF |
| 12345 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
| 12346 | as_fn_error "could not setup config headers machinery" "$LINENO" 5 |
| 12347 | fi # test -n "$CONFIG_HEADERS" |
| 12348 | |
| 12349 | |
| 12350 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12351 | shift |
| 12352 | for ac_tag |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12353 | do |
| 12354 | case $ac_tag in |
| 12355 | :[FHLC]) ac_mode=$ac_tag; continue;; |
| 12356 | esac |
| 12357 | case $ac_mode$ac_tag in |
| 12358 | :[FHL]*:*);; |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12359 | :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12360 | :[FH]-) ac_tag=-:-;; |
| 12361 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
| 12362 | esac |
| 12363 | ac_save_IFS=$IFS |
| 12364 | IFS=: |
| 12365 | set x $ac_tag |
| 12366 | IFS=$ac_save_IFS |
| 12367 | shift |
| 12368 | ac_file=$1 |
| 12369 | shift |
| 12370 | |
| 12371 | case $ac_mode in |
| 12372 | :L) ac_source=$1;; |
| 12373 | :[FH]) |
| 12374 | ac_file_inputs= |
| 12375 | for ac_f |
| 12376 | do |
| 12377 | case $ac_f in |
| 12378 | -) ac_f="$tmp/stdin";; |
| 12379 | *) # Look for the file first in the build tree, then in the source tree |
| 12380 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
| 12381 | # because $ac_f cannot contain `:'. |
| 12382 | test -f "$ac_f" || |
| 12383 | case $ac_f in |
| 12384 | [\\/$]*) false;; |
| 12385 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
| 12386 | esac || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12387 | as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12388 | esac |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12389 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12390 | as_fn_append ac_file_inputs " '$ac_f'" |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12391 | done |
| 12392 | |
| 12393 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
| 12394 | # use $as_me), people would be surprised to read: |
| 12395 | # /* config.h. Generated by config.status. */ |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12396 | configure_input='Generated from '` |
| 12397 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' |
| 12398 | `' by configure.' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12399 | if test x"$ac_file" != x-; then |
| 12400 | configure_input="$ac_file. $configure_input" |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12401 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12402 | $as_echo "$as_me: creating $ac_file" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12403 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12404 | # Neutralize special characters interpreted by sed in replacement strings. |
| 12405 | case $configure_input in #( |
| 12406 | *\&* | *\|* | *\\* ) |
| 12407 | ac_sed_conf_input=`$as_echo "$configure_input" | |
| 12408 | sed 's/[\\\\&|]/\\\\&/g'`;; #( |
| 12409 | *) ac_sed_conf_input=$configure_input;; |
| 12410 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12411 | |
| 12412 | case $ac_tag in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12413 | *:-:* | *:-) cat >"$tmp/stdin" \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12414 | || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12415 | esac |
| 12416 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12417 | esac |
| 12418 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12419 | ac_dir=`$as_dirname -- "$ac_file" || |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12420 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
| 12421 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
| 12422 | X"$ac_file" : 'X\(//\)$' \| \ |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12423 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12424 | $as_echo X"$ac_file" | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12425 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
| 12426 | s//\1/ |
| 12427 | q |
| 12428 | } |
| 12429 | /^X\(\/\/\)[^/].*/{ |
| 12430 | s//\1/ |
| 12431 | q |
| 12432 | } |
| 12433 | /^X\(\/\/\)$/{ |
| 12434 | s//\1/ |
| 12435 | q |
| 12436 | } |
| 12437 | /^X\(\/\).*/{ |
| 12438 | s//\1/ |
| 12439 | q |
| 12440 | } |
| 12441 | s/.*/./; q'` |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12442 | as_dir="$ac_dir"; as_fn_mkdir_p |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12443 | ac_builddir=. |
| 12444 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12445 | case "$ac_dir" in |
| 12446 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12447 | *) |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12448 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12449 | # A ".." for each directory in $ac_dir_suffix. |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12450 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12451 | case $ac_top_builddir_sub in |
| 12452 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
| 12453 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
| 12454 | esac ;; |
| 12455 | esac |
| 12456 | ac_abs_top_builddir=$ac_pwd |
| 12457 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
| 12458 | # for backward compatibility: |
| 12459 | ac_top_builddir=$ac_top_build_prefix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12460 | |
| 12461 | case $srcdir in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12462 | .) # We are building in place. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12463 | ac_srcdir=. |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12464 | ac_top_srcdir=$ac_top_builddir_sub |
| 12465 | ac_abs_top_srcdir=$ac_pwd ;; |
| 12466 | [\\/]* | ?:[\\/]* ) # Absolute name. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12467 | ac_srcdir=$srcdir$ac_dir_suffix; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12468 | ac_top_srcdir=$srcdir |
| 12469 | ac_abs_top_srcdir=$srcdir ;; |
| 12470 | *) # Relative name. |
| 12471 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
| 12472 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
| 12473 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12474 | esac |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12475 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12476 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12477 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12478 | case $ac_mode in |
| 12479 | :F) |
| 12480 | # |
| 12481 | # CONFIG_FILE |
| 12482 | # |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12483 | |
| 12484 | case $INSTALL in |
| 12485 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12486 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12487 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12488 | _ACEOF |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12489 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12490 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12491 | # If the template does not know about datarootdir, expand it. |
| 12492 | # FIXME: This hack should be removed a few years after 2.60. |
| 12493 | ac_datarootdir_hack=; ac_datarootdir_seen= |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12494 | ac_sed_dataroot=' |
| 12495 | /datarootdir/ { |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12496 | p |
| 12497 | q |
| 12498 | } |
| 12499 | /@datadir@/p |
| 12500 | /@docdir@/p |
| 12501 | /@infodir@/p |
| 12502 | /@localedir@/p |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12503 | /@mandir@/p' |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12504 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12505 | *datarootdir*) ac_datarootdir_seen=yes;; |
| 12506 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12507 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12508 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12509 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12510 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12511 | ac_datarootdir_hack=' |
| 12512 | s&@datadir@&$datadir&g |
| 12513 | s&@docdir@&$docdir&g |
| 12514 | s&@infodir@&$infodir&g |
| 12515 | s&@localedir@&$localedir&g |
| 12516 | s&@mandir@&$mandir&g |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12517 | s&\\\${datarootdir}&$datarootdir&g' ;; |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12518 | esac |
| 12519 | _ACEOF |
| 12520 | |
| 12521 | # Neutralize VPATH when `$srcdir' = `.'. |
| 12522 | # Shell code in configure.ac might set extrasub. |
| 12523 | # FIXME: do we really want to maintain this feature? |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12524 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 |
| 12525 | ac_sed_extra="$ac_vpsub |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12526 | $extrasub |
| 12527 | _ACEOF |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12528 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12529 | :t |
| 12530 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12531 | s|@configure_input@|$ac_sed_conf_input|;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12532 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12533 | s&@top_build_prefix@&$ac_top_build_prefix&;t t |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12534 | s&@srcdir@&$ac_srcdir&;t t |
| 12535 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
| 12536 | s&@top_srcdir@&$ac_top_srcdir&;t t |
| 12537 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
| 12538 | s&@builddir@&$ac_builddir&;t t |
| 12539 | s&@abs_builddir@&$ac_abs_builddir&;t t |
| 12540 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
| 12541 | s&@INSTALL@&$ac_INSTALL&;t t |
| 12542 | $ac_datarootdir_hack |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12543 | " |
| 12544 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | |
| 12545 | if $ac_cs_awk_getline; then |
| 12546 | $AWK -f "$tmp/subs.awk" |
| 12547 | else |
| 12548 | $AWK -f "$tmp/subs.awk" | $SHELL |
| 12549 | fi >$tmp/out \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12550 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12551 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12552 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
| 12553 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
| 12554 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12555 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12556 | which seems to be undefined. Please make sure it is defined." >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12557 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12558 | which seems to be undefined. Please make sure it is defined." >&2;} |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12559 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12560 | rm -f "$tmp/stdin" |
| 12561 | case $ac_file in |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12562 | -) cat "$tmp/out" && rm -f "$tmp/out";; |
| 12563 | *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; |
| 12564 | esac \ |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12565 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12566 | ;; |
Theodore Ts'o | d1154eb | 2011-09-18 17:34:37 -0400 | [diff] [blame] | 12567 | :H) |
| 12568 | # |
| 12569 | # CONFIG_HEADER |
| 12570 | # |
| 12571 | if test x"$ac_file" != x-; then |
| 12572 | { |
| 12573 | $as_echo "/* $configure_input */" \ |
| 12574 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" |
| 12575 | } >"$tmp/config.h" \ |
| 12576 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 12577 | if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then |
| 12578 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 |
| 12579 | $as_echo "$as_me: $ac_file is unchanged" >&6;} |
| 12580 | else |
| 12581 | rm -f "$ac_file" |
| 12582 | mv "$tmp/config.h" "$ac_file" \ |
| 12583 | || as_fn_error "could not create $ac_file" "$LINENO" 5 |
| 12584 | fi |
| 12585 | else |
| 12586 | $as_echo "/* $configure_input */" \ |
| 12587 | && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ |
| 12588 | || as_fn_error "could not create -" "$LINENO" 5 |
| 12589 | fi |
| 12590 | ;; |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12591 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12592 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12593 | $as_echo "$as_me: executing $ac_file commands" >&6;} |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12594 | ;; |
| 12595 | esac |
| 12596 | |
| 12597 | |
| 12598 | case $ac_file$ac_mode in |
| 12599 | "default-1":C) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12600 | for ac_file in $CONFIG_FILES; do |
| 12601 | # Support "outfile[:infile[:infile...]]" |
| 12602 | case "$ac_file" in |
| 12603 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
Theodore Ts'o | a64c9c1 | 2000-02-08 20:17:21 +0000 | [diff] [blame] | 12604 | esac |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12605 | # PO directories have a Makefile.in generated from Makefile.in.in. |
| 12606 | case "$ac_file" in */Makefile.in) |
| 12607 | # Adjust a relative srcdir. |
| 12608 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
| 12609 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
| 12610 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
| 12611 | # In autoconf-2.13 it is called $ac_given_srcdir. |
| 12612 | # In autoconf-2.50 it is called $srcdir. |
| 12613 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
| 12614 | case "$ac_given_srcdir" in |
| 12615 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
| 12616 | /*) top_srcdir="$ac_given_srcdir" ;; |
| 12617 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
| 12618 | esac |
| 12619 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
| 12620 | rm -f "$ac_dir/POTFILES" |
| 12621 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
| 12622 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12623 | POMAKEFILEDEPS="POTFILES.in" |
| 12624 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12625 | # on $ac_dir but don't depend on user-specified configuration |
| 12626 | # parameters. |
| 12627 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
| 12628 | # The LINGUAS file contains the set of available languages. |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12629 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12630 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
| 12631 | fi |
| 12632 | ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
| 12633 | # Hide the ALL_LINGUAS assigment from automake. |
| 12634 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12635 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
| 12636 | else |
| 12637 | # The set of available languages was given in configure.in. |
| 12638 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12639 | fi |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12640 | # Compute POFILES |
| 12641 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
| 12642 | # Compute UPDATEPOFILES |
| 12643 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
| 12644 | # Compute DUMMYPOFILES |
| 12645 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
| 12646 | # Compute GMOFILES |
| 12647 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12648 | case "$ac_given_srcdir" in |
| 12649 | .) srcdirpre= ;; |
| 12650 | *) srcdirpre='$(srcdir)/' ;; |
| 12651 | esac |
| 12652 | POFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12653 | UPDATEPOFILES= |
| 12654 | DUMMYPOFILES= |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12655 | GMOFILES= |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12656 | for lang in $ALL_LINGUAS; do |
| 12657 | POFILES="$POFILES $srcdirpre$lang.po" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12658 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
| 12659 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12660 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12661 | done |
| 12662 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
| 12663 | # environment variable. |
| 12664 | INST_LINGUAS= |
| 12665 | if test -n "$ALL_LINGUAS"; then |
| 12666 | for presentlang in $ALL_LINGUAS; do |
| 12667 | useit=no |
| 12668 | if test "%UNSET%" != "$LINGUAS"; then |
| 12669 | desiredlanguages="$LINGUAS" |
| 12670 | else |
| 12671 | desiredlanguages="$ALL_LINGUAS" |
| 12672 | fi |
| 12673 | for desiredlang in $desiredlanguages; do |
| 12674 | # Use the presentlang catalog if desiredlang is |
| 12675 | # a. equal to presentlang, or |
| 12676 | # b. a variant of presentlang (because in this case, |
| 12677 | # presentlang can be used as a fallback for messages |
| 12678 | # which are not translated in the desiredlang catalog). |
| 12679 | case "$desiredlang" in |
| 12680 | "$presentlang"*) useit=yes;; |
| 12681 | esac |
| 12682 | done |
| 12683 | if test $useit = yes; then |
| 12684 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
| 12685 | fi |
| 12686 | done |
| 12687 | fi |
| 12688 | CATALOGS= |
| 12689 | if test -n "$INST_LINGUAS"; then |
| 12690 | for lang in $INST_LINGUAS; do |
| 12691 | CATALOGS="$CATALOGS $lang.gmo" |
| 12692 | done |
| 12693 | fi |
| 12694 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12695 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
Theodore Ts'o | a04eba3 | 2003-05-03 16:35:17 -0400 | [diff] [blame] | 12696 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
| 12697 | if test -f "$f"; then |
| 12698 | case "$f" in |
| 12699 | *.orig | *.bak | *~) ;; |
| 12700 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
| 12701 | esac |
| 12702 | fi |
| 12703 | done |
| 12704 | fi |
| 12705 | ;; |
| 12706 | esac |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12707 | done ;; |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12708 | |
Theodore Ts'o | e105214 | 2006-10-21 21:46:47 -0400 | [diff] [blame] | 12709 | esac |
| 12710 | done # for ac_tag |
| 12711 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12712 | |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12713 | as_fn_exit 0 |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12714 | _ACEOF |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12715 | ac_clean_files=$ac_clean_files_save |
| 12716 | |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12717 | test $ac_write_fail = 0 || |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12718 | as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12719 | |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12720 | |
| 12721 | # configure is writing to config.log, and then calls config.status. |
| 12722 | # config.status does its own redirection, appending to config.log. |
| 12723 | # Unfortunately, on DOS this fails, as config.log is still kept open |
| 12724 | # by configure, so config.status won't be able to write to it; its |
| 12725 | # output is simply discarded. So we exec the FD to /dev/null, |
| 12726 | # effectively closing config.log, so it can be properly (re)opened and |
| 12727 | # appended to by config.status. When coming back to configure, we |
| 12728 | # need to make the FD available again. |
| 12729 | if test "$no_create" != yes; then |
| 12730 | ac_cs_success=: |
| 12731 | ac_config_status_args= |
| 12732 | test "$silent" = yes && |
| 12733 | ac_config_status_args="$ac_config_status_args --quiet" |
| 12734 | exec 5>/dev/null |
| 12735 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
| 12736 | exec 5>>config.log |
| 12737 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
| 12738 | # would make configure fail if this is the last instruction. |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12739 | $ac_cs_success || as_fn_exit $? |
Theodore Ts'o | b0cacab | 2004-11-30 19:00:19 -0500 | [diff] [blame] | 12740 | fi |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12741 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then |
Theodore Ts'o | 57aa50d | 2009-11-26 10:38:04 -0500 | [diff] [blame] | 12742 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 |
Scott James Remnant | 39fd3d4 | 2009-05-14 13:03:25 +0100 | [diff] [blame] | 12743 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} |
| 12744 | fi |
Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 12745 | |
Theodore Ts'o | ee683a1 | 2005-02-05 15:53:56 -0500 | [diff] [blame] | 12746 | if test -f util/gen-tarball; then chmod +x util/gen-tarball; fi |